[pygtk] popups in fullscreen apps

Chris Cole ccole2 at mix.wvu.edu
Sun Sep 16 07:42:11 WST 2007


Chris Cole wrote:
> Elijah Newren wrote:
>> On 8/17/07, Chris Cole <ccole2 at mix.wvu.edu> wrote:
>>> Right. When I make the popup window as "normal" and set it transient to
>>> the fullscreen window it gets hidden, and although it is selectable via
>>> alt+tab, you can't bring it to the top of the window stack for viewing.
>>
>> I think this is http://bugzilla.gnome.org/show_bug.cgi?id=308322, an
>> annoying, stupid bug in metacity.  I shouldn't have let that bug sit
>> there this long.  I'll try to fix it soon.
>>
>>> However, this isn't my real issue. The real issue is when I set the
>>> popup type hint everything else works fine except for the fact I can't
>>> edit any entry boxes -- and I'm guessing this shouldn't be the case...
>>
>> GTK popup windows are override-redirect windows, which is fancy
>> X-speak for the-window-manager-can't-do-anything-with-it windows.  In
>> particular, the WM can't set focus to override-redirect windows when
>> the user clicks on them or moves the mouse over them.  You have to
>> manually do that in your application (or grab the keyboard and mouse
>> entirely when you show such windows, as many apps do).
> 
> Thanks for all the swift replies Elijah. I have already tried to use 
> grab_focus() on the gtkEntry I'm trying to edit to no avail...we're you 
> referring to something else?
> 
>> Hope that helps,
>> Elijah
> 
> 

I finally fixed this issue if anyone is curious. I had to set the window 
type to be a toplevel window in glade, but set the type hint to 
dialog...works like a charm.

Chris


More information about the pygtk mailing list