[pygtk] popups in fullscreen apps

Elijah Newren newren at gmail.com
Fri Aug 17 21:19:37 WST 2007


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?

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...

Elijah


More information about the pygtk mailing list