Re: window minimised and unminimised signals
- From: Tim Cuthbertson <tim gfxmonk net>
- To: Florian Müllner <fmuellner gnome org>
- Cc: gnome-shell-list <gnome-shell-list gnome org>
- Subject: Re: window minimised and unminimised signals
- Date: Wed, 22 Jun 2011 22:33:51 +1000
On Wed, Jun 22, 2011 at 9:24 PM, Florian Müllner <fmuellner gnome org> wrote:
> On Wed, 2011-06-22 at 21:21 +1000, Tim Cuthbertson wrote:
>> Are there any signals for these events in gnome-shell?
>>
>> Right now I've managed to infer these events when the window's actor
>> 'size-changed' signal fires, using the following logic:
>> - if the window's `minimised` property is now true, assume the window
>> has just been minimised,
>> - if the current value of global.screen.get_display().get_grab_op()
>> == Meta.GrabOp.COMPOSITOR, then it seems to be an un-minimize event.
>>
>> Those are pretty hacky, and the latter in particular is downright
>> guesswork. Is there a better way?
>
> Why not just use 'notify::minimized'?
Ah! Probably because I only just now learned that all properties have
a corresponding "notify:: signal". Awesome, thanks! :)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]