GNOME Bugzilla – Bug 638483
libwnck should use StaticGravity when positioning windows on viewport change
Last modified: 2018-01-24 13:50:13 UTC
Created attachment 177340 [details] [review] Use StaticGravity on MOVERESIZE request for viewport change. Currently libwnck uses ForgetGravity (eg gravity=0) when sending a _NET_MOVERESIZE_WINDOW request to the window manager when positioning a window to change its viewport. This causes the window manager to use the gravity specified in the window size hints, which could end up being a gravity with an actual value (eg NorthWest or SouthEast gravity) causing the window to be displaced by the decoration extents it is repositioned on to another viewport. According to the EWMH [1], libwnck should be using StaticGravity, since it positions the windows without knowledge of the decoration size. The window manager can then handle this request appropriately. [1] http://standards.freedesktop.org/wm-spec/wm-spec-1.3.html#id2506756 Attached is a patch to do this
On second thoughts, wnck_window_get_geometry is supposed to return the geometry of the client and frame, so setting this to StaticGravity isn't an option. Investigating further.
Hey Sam, any news on this?
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/libwnck/issues/122.