[mutter/wip/ssd-black-borders-fix: 19/22] x11: Don't proceed with interactive resize until last iteration finishes



commit 24b9f2fabc6f937861c85084ea70d92f01bfcc7d
Author: Ray Strode <rstrode redhat com>
Date:   Thu Mar 15 13:09:23 2018 -0400

    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.

 src/x11/window-x11.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/x11/window-x11.c b/src/x11/window-x11.c
index f2a82a217..94f62718b 100644
--- a/src/x11/window-x11.c
+++ b/src/x11/window-x11.c
@@ -3506,6 +3506,7 @@ meta_window_x11_update_sync_request_counter (MetaWindow *window,
 
        if (window == window->display->grab_window &&
            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))
          {
            meta_topic (META_DEBUG_RESIZING,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]