[pygtk] popups in fullscreen apps
Chris Cole
ccole2 at mix.wvu.edu
Fri Aug 17 21:42:25 WST 2007
Elijah Newren wrote:
> On 8/16/07, Chris Cole <ccole2 at mix.wvu.edu> wrote:
>> Elijah Newren wrote:
>>> On 8/16/07, Chris Cole <ccole2 at mix.wvu.edu> wrote:
>>>> Hello all,
>>>> I'm writing a fullscreen app in which I have a popup(type hint set in
>>>> glade) gtkWindow coming up on top of a fullscreen window asking for user
>>>> input in a gtkEntry. It seems that whenever I have the popup type hint
>>>> set, I can't edit any of the entries, but whenever I take the type hint
>>>> off, my gnome-panel jumps in front of the fullscreen window
>> what i meant to say here is when i take the popup hint off, i can edit
>> the entries as normal, but the gnome-panel jumps in front of the
>> fullscreen window (both of these behaviors are without setting transiency)
>
> Right, if it's not a transient to the fullscreen window, the window
> manager (or at least metacity) will think you're trying to switch to
> another app when you focus this new window. When you do so, it drops
> the fullscreen window to normal stacking level, which is below the
> panel.
>
> (This is a useful safety net for people to recover via alt+tab when a
> fullscreen window hangs, or to allow them to quickly take care of
> something in another app without first closing their fullscreen
> window)
>
>>> When you make the window a normal window instead of override-redirect
>>> (i.e. instead of a popup), do you also mark the window as a transient
>>> to the fullscreen window?
>>>
>>> If so, I'd say this is a window manager bug.
>> Actually, an even stranger behavior is occuring if i make it transient
>> for the fullscreen window and take off the popup type hint...the window
>> is getting initialized (aka i can see it when i do an alt+tab browsing)
>> but i can't actually view it!? I'm really confused now...
>
> I'm not quite sure I'm following. You're making the window of type
> normal and marking it as transient to the fullscreen window...and it's
> not appearing when you tell it to show? Showing up temporarily and
> then dropping below the fullscreen window? Something else?
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.
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...
> Which window manager and version, by the way? I was assuming metacity
> and was speaking from that angle, but that's not always a good
> assumption...
metacity is a pretty good assumption :) and it is 2.18.2
> Elijah
More information about the pygtk
mailing list