all repos — openbox @ 68e8dea93dbdfefb11b1b960abb9da79a2f23c52

openbox fork - make it a bit more like ryudo

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
commit

68e8dea93dbdfefb11b1b960abb9da79a2f23c52

parent

39b2f712aab0309e0aec58468251f1dd103c10de

1 files changed, 1 insertions(+), 4 deletions(-)

jump to
M openbox/mouse.copenbox/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)