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 638483 - libwnck should use StaticGravity when positioning windows on viewport change
libwnck should use StaticGravity when positioning windows on viewport change
Status: RESOLVED OBSOLETE
Product: libwnck
Classification: Core
Component: general
2.30.x
Other Linux
: Normal normal
: ---
Assigned To: libwnck maintainers
libwnck maintainers
Depends on:
Blocks:
 
 
Reported: 2011-01-02 04:05 UTC by Sam Spilsbury
Modified: 2018-01-24 13:50 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Use StaticGravity on MOVERESIZE request for viewport change. (3.23 KB, patch)
2011-01-02 04:05 UTC, Sam Spilsbury
none Details | Review

Description Sam Spilsbury 2011-01-02 04:05:17 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
Comment 1 Sam Spilsbury 2011-01-05 14:34:22 UTC
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.
Comment 2 Marco Trevisan (Treviño) 2013-02-05 17:37:11 UTC
Hey Sam, any news on this?
Comment 3 GNOME Infrastructure Team 2018-01-24 13:50:13 UTC
-- 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.