summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Ådahl <jadahl@gmail.com>2019-07-05 17:45:39 +0200
committerJonas Ådahl <jadahl@gmail.com>2019-12-09 10:09:40 +0100
commit4bf5b7d78d83febc42cbcc2a74f9f5869709d6f9 (patch)
tree8a1edc80e0122fe18054d3ee95bca8b8e3aeaf7e
parentcb91f44ba473b3d46dd8cc95774ff5b161a82e97 (diff)
downloadmutter-4bf5b7d78d83febc42cbcc2a74f9f5869709d6f9.tar.gz
window: Don't constrain an acked window geometry
In Wayland, window configuration is asynchronous. Window geometry is constrained, the constrained geometry is sent to the client, and the client will adapt its surface and acknowledge the configuration. When acknowledged, we shouldn't reconstrain again, as that may invalidate the constraint calculated for the configured size. https://gitlab.gnome.org/GNOME/mutter/merge_requests/907
-rw-r--r--src/core/window.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/window.c b/src/core/window.c
index 434fb0acf..faa1086a7 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -4085,6 +4085,7 @@ meta_window_move_resize_internal (MetaWindow *window,
constrained_rect = unconstrained_rect;
if (flags & (META_MOVE_RESIZE_MOVE_ACTION | META_MOVE_RESIZE_RESIZE_ACTION) &&
+ !(flags & META_MOVE_RESIZE_WAYLAND_FINISH_MOVE_RESIZE) &&
window->monitor)
{
MetaRectangle old_rect;