From 4bf5b7d78d83febc42cbcc2a74f9f5869709d6f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Fri, 5 Jul 2019 17:45:39 +0200 Subject: [PATCH] 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 --- src/core/window.c | 1 + 1 file changed, 1 insertion(+) 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;