Re: Shell extensions on suspend and resume



So does that mean that the disable() function gets called for each extension?

If I wanted to maintain state would I have to create a temp file?


On Thu, Jun 5, 2014 at 1:46 PM, drago01 <drago01 gmail com> wrote:
On Thu, Jun 5, 2014 at 6:04 PM, Diego Fernandez
<aiguo fernandez gmail com> wrote:
> I wrote an extension which keeps track of which monitor windows are on when
> in a multi-monitor setup.  When you switch to a single monitor set-up, it
> stores that info, and when you return to a multi-monitor set up it returns
> the windows to the correct monitor.  The extension works fine, as long as I
> don't suspend.  However, if there's a suspend cycle in between then the
> windows don't return.
>
> So this leads me to wonder, what signals get sent when you suspend/resume?
> (for example the window 'unamanged', screen 'monitors-changed', and screen
> 'window-left-monitor' signals)
>
> Also, do enable() and disable() get called?

The screen gets locked before suspend and we disable extensions on the
lock screen for security reasons.



--
Diego Fernandez - 爱国


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]