]> Dogcows Code - chaz/openbox/commitdiff
don't set the global moving state unless the move/resize is accepted
authorDana Jansens <danakj@orodu.net>
Sun, 27 May 2007 04:16:14 +0000 (04:16 +0000)
committerDana Jansens <danakj@orodu.net>
Sun, 27 May 2007 04:16:14 +0000 (04:16 +0000)
openbox/moveresize.c

index 8ef18a87f56a556e02ab41b03021d4d176618617..7b9460073160bf6949900486b9e2abf5bb624e77 100644 (file)
@@ -152,12 +152,11 @@ static void popup_coords(ObClient *c, const gchar *format, gint a, gint b)
 void moveresize_start(ObClient *c, gint x, gint y, guint b, guint32 cnr)
 {
     ObCursor cur;
-
-    moving = (cnr == prop_atoms.net_wm_moveresize_move ||
-              cnr == prop_atoms.net_wm_moveresize_move_keyboard);
+    gboolean mv = (cnr == prop_atoms.net_wm_moveresize_move ||
+                   cnr == prop_atoms.net_wm_moveresize_move_keyboard);
 
     if (moveresize_in_progress || !c->frame->visible ||
-        !(moving ?
+        !(mv ?
           (c->functions & OB_CLIENT_FUNC_MOVE) :
           (c->functions & OB_CLIENT_FUNC_RESIZE)))
         return;
@@ -197,6 +196,7 @@ void moveresize_start(ObClient *c, gint x, gint y, guint b, guint32 cnr)
 
     frame_end_iconify_animation(c->frame);
 
+    moving = mv;
     moveresize_client = c;
     start_cx = c->area.x;
     start_cy = c->area.y;
This page took 0.025093 seconds and 4 git commands to generate.