diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-08-31 18:52:56 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-08-31 18:52:56 +0000 |
| commit | 829a9fafd4516f8af21065195d43ded010f2e232 (patch) | |
| tree | c3cc31b5d89b46b352bd6433a7367dff937cbb6b /openbox/mouse.c | |
| parent | 0745e2ee0aa6b8e7dbab1a4124e60ccb5b4e8441 (diff) | |
when no modifiers are in a binding, then make it non-interactive
Diffstat (limited to 'openbox/mouse.c')
| -rw-r--r-- | openbox/mouse.c | 7 |
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; |
