]> Dogcows Code - chaz/openbox/blobdiff - openbox/mouse.c
add the DesktopLast action, props to marius nita for this one
[chaz/openbox] / openbox / mouse.c
index 15d77ae68f3e9ce062592b2df792eaec86b6f60f..e8b6aec0b855956bb8d84ebecf7a8d16dff782c9 100644 (file)
@@ -346,6 +346,13 @@ 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) {
+        action->data.any.interactive = FALSE;
+        action->data.inter.final = TRUE;
+    }
+
     /* add the binding */
     b = g_new0(ObMouseBinding, 1);
     b->state = state;
This page took 0.022383 seconds and 4 git commands to generate.