libwnck should use StaticGravity when positioning windows on viewport change
Submitted by Sam Spilsbury
Created attachment 177340 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 , 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.
Attached is a patch to do this
Patch 177340, "Use StaticGravity on MOVERESIZE request for viewport change.":