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 523574 - Export usable desktop space
Export usable desktop space
Status: RESOLVED DUPLICATE of bug 641999
Product: gtk+
Classification: Platform
Component: Backend: X11
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: gtk-bugs
gtk-bugs
: 635382 (view as bug list)
Depends on:
Blocks: 560151
 
 
Reported: 2008-03-20 15:47 UTC by Bastien Nocera
Modified: 2011-06-01 04:19 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Bastien Nocera 2008-03-20 15:47:00 UTC
In Totem, we allow users to resize the current window based on the size of the video. We would need to know the "usable" size of the desktop (ie. screen size minus panels).
Comment 1 Bastien Nocera 2010-06-20 13:23:40 UTC
The code exists in nautilus, in src/file-manager/fm-desktop-icon-view.c. Look at net_workarea_changed().
Comment 2 Bastien Nocera 2010-10-12 00:51:34 UTC
As discussed on IRC, this isn't something interesting for the majority of applications (which will rely on the window manager maximising to the size of the work area if things don't fit). So closing, and will handle it in Totem.
Comment 3 Bastien Nocera 2011-01-27 18:46:10 UTC
*** Bug 635382 has been marked as a duplicate of this bug. ***
Comment 4 Bastien Nocera 2011-01-27 18:48:06 UTC
Reopening.

It seems that this functionality would be useful for:
- totem
- nautilus
- notify daemon
- gnome-desktop
- the XFCE file manager

and probably a number of other applications that would use the screen size instead of the workspace size (as a default size for their main window for example).

Also not sure whether _NET_NUMBER_OF_DESKTOPS is relevant here, nautilus seems to think it is.
Comment 5 Bastien Nocera 2011-03-27 04:29:56 UTC
This code would also be relevant to GTK+'s popup menus, which will end up underneath the shell panel when they're too big.

We also have a copied version of the code in Cheese, to avoid the flash widget from overlapping the panel (hence making it disappear).

This is apparently waiting on an extension to be written for Xorg.
Comment 6 Matthias Clasen 2011-06-01 04:19:12 UTC

*** This bug has been marked as a duplicate of bug 641999 ***