GNOME Bugzilla – Bug 699587
wayland: ensure the window is not maximised while being moved
Last modified: 2015-02-17 17:45:05 UTC
When moving a maximised window, the window should automatically become un-maximised.
Created attachment 243185 [details] [review] wayland: ensure the window is not maximised while being moved
Review of attachment 243185 [details] [review]: LGTM.
I think this is one of those things that need compositor side support. Typically you want a little but of motion threshold before you unmaximize and move the window, which has to be done by the compositor. The application sends a move request as usual and the compositor will check motion against the threshold. Once the threshold is exceeded, the compositor sends an unaximized event, and when the application responds with new buffer, the compositor can start moving the window. What's missing here is the request_unmaximize event that allows the compositor to request the application to unmaximize. The application responds by unmaximizeing and sending a new buffer (renderered with decorations and shadow) at which point the compositor can start moving the surface.
Comment on attachment 243185 [details] [review] wayland: ensure the window is not maximised while being moved I think what Kristian suggested is a better solution for this bug.
This "request_unmaximise" will come from the work to rethink the state changes as part of the shell revamp.
it seems to work acceptably in gnome-shell today.