RE: How to judge if GtkWindow is on top of hildon desktop or NOT

2007-07-25 Thread Zhu, Peter J
Simon, 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. Peter Simon Budig wrote: Zhu, Peter J ([EMAIL PROTECTED]) wrote: I tried to use both

Re: How to judge if GtkWindow is on top of hildon desktop or NOT

2007-07-25 Thread Simon Budig
Zhu, Peter J ([EMAIL PROTECTED]) 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

Re: How to judge if GtkWindow is on top of hildon desktop or NOT

2007-07-25 Thread Simon Budig
Zhu, Peter J ([EMAIL PROTECTED]) wrote: I used differnt solution. Hildon library has a special function of hildon_window_get_is_topmost() to address this very elegantly. Yeah, I read your second mail after I replied :) It probably depends on what you want. If you just want to check if your

RE: How to judge if GtkWindow is on top of hildon desktop or NOT

2007-07-18 Thread Zhu, Peter J
I get what I want with hildon_window_get_is_topmost. Zhu, Peter J wrote on Thursday, July 19, 2007 1:48 AM: 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. For