summaryrefslogtreecommitdiff
path: root/openbox/mouse.c
diff options
context:
space:
mode:
Diffstat (limited to 'openbox/mouse.c')
-rw-r--r--openbox/mouse.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/openbox/mouse.c b/openbox/mouse.c
index 15d77ae6..e8b6aec0 100644
--- a/openbox/mouse.c
+++ b/openbox/mouse.c
@@ -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;