]> Dogcows Code - chaz/openbox/commitdiff
don't show the resize popup unless you're actually resizing, for both sync mode and...
authorDana Jansens <danakj@orodu.net>
Tue, 22 May 2007 18:07:07 +0000 (18:07 +0000)
committerDana Jansens <danakj@orodu.net>
Tue, 22 May 2007 18:07:07 +0000 (18:07 +0000)
openbox/moveresize.c

index 837f3e92feec451dd59993944d42fa9f785fc36e..fbc85f5b261de74a464a45bd298d10a3d8ccc3b2 100644 (file)
@@ -325,31 +325,32 @@ static void do_move(gboolean keyboard)
 
 static void do_resize()
 {
+    gint x, y, w, h, lw, lh;
+
+    /* see if it is actually going to resize */
+    x = 0;
+    y = 0;
+    w = cur_x;
+    h = cur_y;
+    client_try_configure(moveresize_client, &x, &y, &w, &h,
+                         &lw, &lh, TRUE);
+    if (w == moveresize_client->area.width &&
+        h == moveresize_client->area.height)
+    {
+        return;
+    }
+
 #ifdef SYNC
     if (config_resize_redraw && extensions_sync &&
         moveresize_client->sync_request && moveresize_client->sync_counter)
     {
         XEvent ce;
         XSyncValue val;
-        gint x, y, w, h, lw, lh;
 
         /* are we already waiting for the sync counter to catch up? */
         if (waiting_for_sync)
             return;
 
-        /* see if it is actually going to resize */
-        x = 0;
-        y = 0;
-        w = cur_x;
-        h = cur_y;
-        client_try_configure(moveresize_client, &x, &y, &w, &h,
-                             &lw, &lh, TRUE);
-        if (w == moveresize_client->area.width &&
-            h == moveresize_client->area.height)
-        {
-            return;
-        }
-
         /* increment the value we're waiting for */
         ++moveresize_client->sync_counter_value;
         XSyncIntToValue(&val, moveresize_client->sync_counter_value);
This page took 0.025048 seconds and 4 git commands to generate.