window/x11: Allow window resize while moving

Commit f2328f11 would ignore any ConfigureRequest from X11 clients while
there is an interactive user operation in progress.

Yet, the user should be allowed to move a window while the X11 client is
resizing it, as the two operations are not intrinsically incompatible.

https://gitlab.gnome.org/GNOME/mutter/-/issues/1674

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1777>
This commit is contained in:
Olivier Fourdan 2021-03-08 09:33:00 +01:00 committed by Marge Bot
parent 91117bb052
commit cc928ba7d2

View File

@ -2575,7 +2575,7 @@ meta_window_move_resize_request (MetaWindow *window,
width = window->rect.width; width = window->rect.width;
height = window->rect.height; height = window->rect.height;
if (!in_grab_op) if (!in_grab_op || !meta_grab_op_is_resizing (window->display->grab_op))
{ {
if (value_mask & CWWidth) if (value_mask & CWWidth)
width = new_width; width = new_width;