dont ungrab/grab all the mouse bindings every time a new one is added. just do it once on startup.
Dana Jansens danakj@orodu.net
1 files changed,
1 insertions(+),
4 deletions(-)
jump to
M
openbox/mouse.c
→
openbox/mouse.c
@@ -348,8 +348,6 @@ return TRUE;
} } - 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 @@ b->button = button;
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)