x11: Don't proceed with interactive resize until last iteration finishes

As mentioned in the previous commit, resizing an Xwayland client is an
asynchronous operation.

This commit makes sure we don't allow there to be two resizes in flight
at the same time.  We shouldn't resize the window until we've drawn the
window from this step of the resize.
This commit is contained in:
Ray Strode 2018-03-15 13:09:23 -04:00 committed by Ray Strode
parent fbf7e0073e
commit 24b9f2fabc

View File

@ -3506,6 +3506,7 @@ meta_window_x11_update_sync_request_counter (MetaWindow *window,
if (window == window->display->grab_window && if (window == window->display->grab_window &&
meta_grab_op_is_resizing (window->display->grab_op) && meta_grab_op_is_resizing (window->display->grab_op) &&
!meta_window_resize_is_pending (window) &&
(!window->extended_sync_request_counter || new_counter_value % 2 == 0)) (!window->extended_sync_request_counter || new_counter_value % 2 == 0))
{ {
meta_topic (META_DEBUG_RESIZING, meta_topic (META_DEBUG_RESIZING,