unset it AFTER using it...
authorDana Jansens <danakj@orodu.net>
Fri, 18 Apr 2003 06:29:28 +0000 (06:29 +0000)
committerDana Jansens <danakj@orodu.net>
Fri, 18 Apr 2003 06:29:28 +0000 (06:29 +0000)
openbox/moveresize.c

index 206d975..edb713d 100644 (file)
@@ -130,9 +130,6 @@ void moveresize_end(gboolean cancel)
     XDestroyWindow(ob_display, coords);
     coords = None;
 
-    moveresize_in_progress = FALSE;
-    moveresize_client = NULL;
-
     if (moving) {
         client_configure(moveresize_client, Corner_TopLeft,
                          (cancel ? start_cx : cur_x),
@@ -145,6 +142,9 @@ void moveresize_end(gboolean cancel)
                          (cancel ? start_cw : cur_x),
                          (cancel ? start_ch : cur_y), TRUE, TRUE);
     }
+
+    moveresize_in_progress = FALSE;
+    moveresize_client = NULL;
 }
 
 static void do_move()