GNOME Bugzilla – Bug 641999
Consider adding a workarea API
Last modified: 2012-11-21 07:59:37 UTC
So far, having menus and other popups pop over the gnome panel was merely an annoyance, but with gnome-shell being a compositor, the override-redirects actually pop _under_ the panel, and that is just broken. One argument for why we haven't added this so far is that this is WM territory. Another argument for why we haven't done it yet is that doing it properly and without constant roundtrips requires us to listen for PropertyChange on the root window, and we don't want to wake up every gtk client in the session whenever the user changes the window stacking, etc. This can be worked around by a property notify filtering api in xfixes that ajax started to spec out at some point. Wether to make this X-specific or not ? Win32 certainly has this information available: http://msdn.microsoft.com/en-us/library/ms921268.aspx I'll attach a patch that adds a private, roundtrippy implementation of gdk_screen_get_monitor_workarea and uses it throughout gtk.
Created attachment 180548 [details] [review] patch
*** Bug 523574 has been marked as a duplicate of this bug. ***
I would like this on win32 too, for e.g. window placement, because normal windows are always under the taskbar.
Given that ajax has recently made another push for getting the xfixes api in, I'd be willing to accept a patch that temporarily incurs a roundtrip. Any volunteers for completing the patch ?
I ended up doing it myself. Alex, if you want to implement this on win32, that would be great.
*** Bug 667257 has been marked as a duplicate of this bug. ***
*** Bug 670738 has been marked as a duplicate of this bug. ***
*** Bug 688735 has been marked as a duplicate of this bug. ***