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>
This commit is contained in:
Sebastian Keller 2021-11-18 17:24:40 +01:00 committed by Marge Bot
parent d66e3e2d8a
commit 0e736af301

View File

@ -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);
}
/**