From 0e736af301b828237057676c3bd1d84a71426161 Mon Sep 17 00:00:00 2001 From: Sebastian Keller Date: Thu, 18 Nov 2021 17:24:40 +0100 Subject: [PATCH] window: Ensure constraints after a Wayland client resize The client may have changed the window size in a way that it now violates some of the constraints. To ensure constraints are applied again after a client resize we need to queue a mutter side resize. This will apply the constraints and send the new size to the client. Fixes: https://gitlab.gnome.org/GNOME/mutter/-/issues/1956 Part-of: --- src/core/window.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/window.c b/src/core/window.c index ff4816eea..a9ed975d2 100644 --- a/src/core/window.c +++ b/src/core/window.c @@ -4213,6 +4213,9 @@ meta_window_move_resize_internal (MetaWindow *window, meta_stack_update_window_tile_matches (window->display->stack, workspace_manager->active_workspace); + + if (flags & META_MOVE_RESIZE_WAYLAND_CLIENT_RESIZE) + meta_window_queue (window, META_QUEUE_MOVE_RESIZE); } /**