mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 08:00:42 -05:00
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:
parent
fbf7e0073e
commit
24b9f2fabc
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user