]> Dogcows Code - chaz/openbox/blobdiff - openbox/moveresize.c
allow the use of keycodes directly in key bindings
[chaz/openbox] / openbox / moveresize.c
index abab8710aa278a93312561158b448f62edbacd00..6a0e97776514c67d9badf16242413af2e864f217 100644 (file)
@@ -44,11 +44,11 @@ void moveresize_startup(gboolean reconfig)
 
 void moveresize_shutdown(gboolean reconfig)
 {
-    if (moveresize_in_progress)
-        moveresize_end(FALSE);
-
-    if (!reconfig)
+    if (!reconfig) {
+        if (moveresize_in_progress)
+            moveresize_end(FALSE);
         client_remove_destructor(client_dest);
+    }
 
     popup_free(popup);
     popup = NULL;
@@ -72,9 +72,7 @@ void moveresize_start(ObClient *c, int x, int y, guint b, guint32 cnr)
 {
     ObCursor cur;
 
-    g_assert(!moveresize_in_progress);
-
-    if (!c->frame->visible)
+    if (moveresize_in_progress || !c->frame->visible)
         return;
 
     moveresize_client = c;
This page took 0.023055 seconds and 4 git commands to generate.