[mutter] window: Ensure constraints after a Wayland client resize



commit 0e736af301b828237057676c3bd1d84a71426161
Author: Sebastian Keller <skeller gnome org>
Date:   Thu Nov 18 17:24:40 2021 +0100

    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: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2103>

 src/core/window.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/src/core/window.c b/src/core/window.c
index ff4816eea8..a9ed975d25 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);
 }
 
 /**


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]