]> Dogcows Code - chaz/openbox/blobdiff - openbox/moveresize.c
don't let move/resize occur on non-visible clients
[chaz/openbox] / openbox / moveresize.c
index 722146aa9883420b8fbad0fab88baa465e6e59f2..c0962fff30f5a6d21c050d857347cf44b2a1cdf5 100644 (file)
@@ -71,6 +71,9 @@ void moveresize_start(ObClient *c, int x, int y, guint b, guint32 cnr)
 
     g_assert(!moveresize_in_progress);
 
+    if (!c->frame->visible)
+        return;
+
     moveresize_client = c;
     start_cx = c->frame->area.x;
     start_cy = c->frame->area.y;
@@ -139,7 +142,7 @@ void moveresize_start(ObClient *c, int x, int y, guint b, guint32 cnr)
 void moveresize_end(gboolean cancel)
 {
     grab_keyboard(FALSE);
-    grab_pointer(FALSE, None);
+    grab_pointer(FALSE, OB_CURSOR_NONE);
 
     popup_hide(popup);
 
This page took 0.020572 seconds and 4 git commands to generate.