core: Avoid queueing resizes while changing workspace during window drag

We already have a user move/resize going on, so avoid botching it with
window resizes with flags & META_MOVE_RESIZE_USER_ACTION == 0 that will
trigger unintended constraints.

https://gitlab.gnome.org/GNOME/mutter/issues/192

Closes: #192
This commit is contained in:
Carlos Garnacho 2018-06-14 19:33:45 +02:00
parent 3649795108
commit 255a7afe73

View File

@ -4734,7 +4734,7 @@ set_workspace_state (MetaWindow *window,
/* queue a move_resize since changing workspaces may change
* the relevant struts
*/
if (!window->override_redirect)
if (!window->override_redirect && window != window->display->grab_window)
meta_window_queue (window, META_QUEUE_MOVE_RESIZE);
meta_window_queue (window, META_QUEUE_CALC_SHOWING);
meta_window_current_workspace_changed (window);