]> Dogcows Code - chaz/openbox/blobdiff - openbox/moveresize.c
only hide menus if theyre supposed to when executing
[chaz/openbox] / openbox / moveresize.c
index 9916c12d3af1d26ef4b46d770ffea0e2ca4a690c..8f92f71f958f34af73564ba2a84e2edddbf5d502 100644 (file)
@@ -30,6 +30,12 @@ static Popup *popup = NULL;
 #define POPUP_X (10)
 #define POPUP_Y (10)
 
+static void client_dest(ObClient *c)
+{
+    if (moveresize_client == c)
+        moveresize_end(TRUE);    
+}
+
 void moveresize_startup()
 {
     XSetWindowAttributes attrib;
@@ -38,10 +44,14 @@ void moveresize_startup()
     popup_size_to_string(popup, "W:  0000  W:  0000");
 
     attrib.save_under = True;
+
+    client_add_destructor(client_dest);
 }
 
 void moveresize_shutdown()
 {
+    client_remove_destructor(client_dest);
+
     popup_free(popup);
     popup = NULL;
 }
This page took 0.020067 seconds and 4 git commands to generate.