X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fmouse.c;h=601c4f1bf5c16e3cdf84720c50b73a42c94c41b3;hb=d989e3c541ea14038258447610bea1ca48298568;hp=91b98c6ac573657e15667af2fa0546b310dd25ce;hpb=806a8c411f10c7a2292bfac15d77c8609f56ee71;p=chaz%2Fopenbox diff --git a/openbox/mouse.c b/openbox/mouse.c index 91b98c6a..601c4f1b 100644 --- a/openbox/mouse.c +++ b/openbox/mouse.c @@ -53,7 +53,8 @@ void mouse_grab_for_client(ObClient *client, gboolean grab) } else continue; if (grab) - grab_button_full(b->button, b->state, win, mask, mode, None); + grab_button_full(b->button, b->state, win, mask, mode, + OB_CURSOR_NONE); else ungrab_button(b->button, b->state, win); } @@ -347,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) { @@ -363,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)