]> Dogcows Code - chaz/openbox/blobdiff - openbox/event.c
fix XSYNCronization of resizes (especially with two monitors).
[chaz/openbox] / openbox / event.c
index 9905d973819660fe9455df638b1560282ef72172..cfa3b4e39147b7f0dfca232798182842f3ac19b4 100644 (file)
@@ -1659,6 +1659,12 @@ static void event_handle_client(ObClient *client, XEvent *e)
         }
 #ifdef SYNC
         else if (msgtype == OBT_PROP_ATOM(NET_WM_SYNC_REQUEST_COUNTER)) {
+            /* if they are resizing right now this would cause weird behaviour.
+               if one day a user reports clients stop resizing, then handle
+               this better by resetting a new XSync alarm and stuff on the
+               new counter, but I expect it will never happen */
+            if (moveresize_client == client)
+                moveresize_end(FALSE);
             client_update_sync_request_counter(client);
         }
 #endif
This page took 0.021451 seconds and 4 git commands to generate.