Re: fullscreen applications



Jeroen Zwartepoorte <Jeroen xs4all nl> writes: 
Here's how it makes the window fullscreen:

if (fullscreen) /* Get to the top */          
      gnome_win_hints_set_layer (GTK_WIDGET (window), 
                                 WIN_LAYER_ABOVE_DOCK);

It then resizes the window so it occupies the entire screen.

My question is this: does GTK set the layer of child windows upon
creation/display? Shouldn't GTK set the layer to be at least the same as
the parent window?

Well, GTK isn't setting the layer at all; that's a libgnomeui
function. libgnomeui = mostly kind of broken.

Though this particular thing works (it sets the layer), there's no
magic to handle dialogs or anything like that. Note also that the
layer hints are deprecated old cruft, replaced by the EWMH spec on
http://www.freedesktop.org, so this is not going to work long-term.

There isn't really a good (meaning, reliable across window managers
and situations) way to implement this. A recent proposal on
wm-spec-list gnome org adds a _NET_WM_TYPE_FULLSCREEN semantic type
which would solve the problem.

Havoc




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]