[mutter] Don't configure a window before it responds to _NET_WM_SYNC_REQUEST



commit 8a33880c00cd994e70bdbe5198e712408a3d175e
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Mon Mar 18 14:16:41 2013 -0400

    Don't configure a window before it responds to _NET_WM_SYNC_REQUEST
    
    In 97a4cc8c, we accidentally lost the check that kept us from
    sending multiple configures to a window before it responds to
    _NET_WM_SYNC_REQUEST. So _NET_WM_SYNC_REQUEST stopped working
    properly. Add a check back with the same effect.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=696091

 src/core/window.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/core/window.c b/src/core/window.c
index d973039..40f1b01 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -9413,6 +9413,15 @@ update_resize (MetaWindow *window,
       break;
     }
 
+#ifdef HAVE_XSYNC
+  /* If we're waiting for a request for _NET_WM_SYNC_REQUEST, we'll
+   * resize the window when the window responds, or when we time
+   * the response out.
+   */
+  if (window->sync_request_timeout_id != 0)
+    return;
+#endif
+
   if (!check_moveresize_frequency (window, &remaining) && !force)
     {
       /* we are ignoring an event here, so we schedule a


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