diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-09-03 23:20:21 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-09-03 23:20:21 +0000 |
| commit | 68e8dea93dbdfefb11b1b960abb9da79a2f23c52 (patch) | |
| tree | 10457b119585e5a6d82cf10f7a717c299c000f32 | |
| parent | 39b2f712aab0309e0aec58468251f1dd103c10de (diff) | |
dont ungrab/grab all the mouse bindings every time a new one is added. just do it once on startup.
| -rw-r--r-- | openbox/mouse.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/openbox/mouse.c b/openbox/mouse.c index ace7bca0..601c4f1b 100644 --- a/openbox/mouse.c +++ b/openbox/mouse.c @@ -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) |
