Re: Can I make a fullscreen overlay without the top bar disappearing?



On 15 January 2012 01:19, Dylan McCall <dylanmccall gmail com> wrote:
> One might observe I can use Gtk.Window.maximize(), but I can't do that
> with a popup, and the toplevel approach demands I do all sorts of
> weird things like set_accept_focus(false) to prevent the user from
> pressing Ctrl+Alt+Down and unsticking the overlay. And, unless I'm
> mistaken, there's no clean way of knowing what dimensions a maximized
> window will have. The only thing I can really get my popup to be is
> fullscreen or some safe number like 90% of screen height.

Have a look at the properties on the root window and you'll find the
available "work area", see
http://standards.freedesktop.org/wm-spec/1.3/ar01s03.html

Ross


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