GNOME Bugzilla – Bug 523574
Export usable desktop space
Last modified: 2011-06-01 04:19:12 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).
The code exists in nautilus, in src/file-manager/fm-desktop-icon-view.c. Look at net_workarea_changed().
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.
*** Bug 635382 has been marked as a duplicate of this bug. ***
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.
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.
*** This bug has been marked as a duplicate of bug 641999 ***