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 736822 - _NET_FRAME_EXTENTS hint in openbox
_NET_FRAME_EXTENTS hint in openbox
Status: RESOLVED OBSOLETE
Product: gtk+
Classification: Platform
Component: Backend: X11
3.13.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2014-09-17 18:14 UTC by simargl
Modified: 2018-04-15 00:09 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description simargl 2014-09-17 18:14:45 UTC
Hi, 

Opensnap, an application which provides aero snap feature in openbox, doesn't work with Evince and other applications which use CSD. It seems like reason for this problem is in fact that those applications don't send information about correct titlebar size.

Please see the comment from Opensnap developer:
https://github.com/lawl/opensnap/issues/19
Comment 1 Matthias Clasen 2014-09-18 17:42:06 UTC
there is no way for applications to send information about the correct titlebar size. _NET_FRAME_EXTENTS is a property that gets set by the window manager
Comment 2 Matthias Clasen 2014-09-18 17:53:11 UTC
Why do you need to know about the titlebar in the first place ? I could understand wanting to know about shadows and invisible borders. That information is actually available, in the _GTK_FRAME_EXTENTS property.
Comment 3 simargl 2014-09-18 19:46:48 UTC
Thanks for your answer but it's obvious that _NET_FRAME_EXTENTS is different for CSD applications compared to others.

To quote Opensnap developer: "Opensnap needs to know the size of the titlebar, right now it gets this from the EWMH hint _NET_FRAME_EXTENTS.

With a regular window this looks like this: _NET_FRAME_EXTENTS(CARDINAL) = 0, 0, 18, 0
With a CSD window it looks like this: _NET_FRAME_EXTENTS(CARDINAL) = 2, 2, 2, 2"

That's why I thought there might be problem somewhere with Gtk. If not, then what else? Openbox?
Comment 4 Matthias Clasen 2014-09-18 22:13:59 UTC
Yes, it is different - it is set by the window manager, and a csd window looks different to a wm than a traditional window. _NET_FRAME_EXTENTS is not documented as 'the third number is the titlebar height' - it is simply the dimensions of the frame that the wm puts around the window. For csd windows, that is rather small.

My question from comment 2 still stands.
Comment 5 simargl 2014-09-19 16:51:39 UTC
"Why do you need to know about the titlebar in the first place ?"

Well I don't, it's the application called Opensnap that use it for doing its work, or precisely to maximize window when its titlebar is dragged to the top, or maximize it vertically to the half of the screen when dragged to left or right screen border. Openbox does not have this functionality by default, so I wanted to use this application. 

I've understood your explanation. _NET_FRAME_EXTENTS hint is correct, there is no problem with Gtk, and Openbox doesn't show titlebar size because it doesn't draw titlebar at all. And there is no way for window manager to know that titlebar is moved to the screen edge, because for these type of applications Gtk is responsible for showing window decoration.
Comment 6 Matthias Clasen 2018-02-10 05:16:31 UTC
We're moving to gitlab! As part of this move, we are moving bugs to NEEDINFO if they haven't seen activity in more than a year. If this issue is still important to you and still relevant with GTK+ 3.22 or master, please reopen it and we will migrate it to gitlab.
Comment 7 Matthias Clasen 2018-04-15 00:09:10 UTC
As announced a while ago, we are migrating to gitlab, and bugs that haven't seen activity in the last year or so will be not be migrated, but closed out in bugzilla.

If this bug is still relevant to you, you can open a new issue describing the symptoms and how to reproduce it with gtk 3.22.x or master in gitlab:

https://gitlab.gnome.org/GNOME/gtk/issues/new