[maemo-developers] How to judge if GtkWindow is on top of hildon desktop or NOT

From: Zhu, Peter J peter.j.zhu at intel.com
Date: Wed Jul 25 12:25:32 EEST 2007

Thanks for response. You get me a new way looking at this issue. 

I used differnt solution. Hildon library has a special function of
hildon_window_get_is_topmost() to address this very elegantly.


Simon Budig wrote:
> Zhu, Peter J (peter.j.zhu at intel.com) wrote:
>> I tried to use both gdk_window_is_visible and gtk_window_is_active to
>> judge if GtkWindow is on top of hildon desktop or not. But
>> unfortunately both fail to get correct result.
> Well, the result probably is correct, but does not describe the
> visibility in your sense  :)
> To track the effective visibility state connect a callback to the
> visibility-notify-event signal. This gets invoked whenever the
> visibility changes and you'll get a GdkVisibilityState, indicating if
> your widget is fully visible, partially obscured or fully obscured.
> Hope this helps,
>         Simon
> --
>               simon at budig.de              http://simon.budig.de/
> _______________________________________________
> maemo-developers mailing list
> maemo-developers at maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers

More information about the maemo-developers mailing list