After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 641999 - Consider adding a workarea API
Consider adding a workarea API
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Backend: X11
unspecified
Other Linux
: Normal normal
: 3.4
Assigned To: gtk-bugs
gtk-bugs
: 523574 667257 670738 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2011-02-10 03:30 UTC by Matthias Clasen
Modified: 2012-11-21 07:59 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch (15.17 KB, patch)
2011-02-10 03:31 UTC, Matthias Clasen
none Details | Review

Description Matthias Clasen 2011-02-10 03:30:59 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.
Comment 1 Matthias Clasen 2011-02-10 03:31:40 UTC
Created attachment 180548 [details] [review]
patch
Comment 2 Matthias Clasen 2011-06-01 04:19:12 UTC
*** Bug 523574 has been marked as a duplicate of this bug. ***
Comment 3 Alexander Larsson 2011-11-25 11:30:27 UTC
I would like this on win32 too, for e.g. window placement, because normal windows are always under the taskbar.
Comment 4 Matthias Clasen 2011-12-12 14:49:00 UTC
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 ?
Comment 5 Matthias Clasen 2011-12-18 19:30:38 UTC
I ended up doing it myself.

Alex, if you want to implement this on win32, that would be great.
Comment 6 Milan Bouchet-Valat 2012-01-04 14:04:32 UTC
*** Bug 667257 has been marked as a duplicate of this bug. ***
Comment 7 Milan Bouchet-Valat 2012-02-24 12:15:45 UTC
*** Bug 670738 has been marked as a duplicate of this bug. ***
Comment 8 Milan Bouchet-Valat 2012-11-21 07:59:37 UTC
*** Bug 688735 has been marked as a duplicate of this bug. ***