]> Dogcows Code - chaz/openbox/blobdiff - openbox/mouse.c
off by one caused clients to be resized a little during a move
[chaz/openbox] / openbox / mouse.c
index ace7bca0c59aca82b172dd5b539d5398ed1bfe12..601c4f1bf5c16e3cdf84720c50b73a42c94c41b3 100644 (file)
@@ -348,8 +348,6 @@ gboolean mouse_bind(char *buttonstr, char *contextstr, ObMouseAction mact,
        }
     }
 
-    grab_all_clients(FALSE);
-
     /* when there are no modifiers in the binding, then the action cannot
        be interactive */
     if (!state && action->data.any.interactive) {
@@ -364,13 +362,12 @@ gboolean mouse_bind(char *buttonstr, char *contextstr, ObMouseAction mact,
     b->actions[mact] = g_slist_append(NULL, action);
     bound_contexts[context] = g_slist_append(bound_contexts[context], b);
 
-    grab_all_clients(TRUE);
-
     return TRUE;
 }
 
 void mouse_startup(gboolean reconfig)
 {
+    grab_all_clients(TRUE);
 }
 
 void mouse_shutdown(gboolean reconfig)
This page took 0.026684 seconds and 4 git commands to generate.