X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=openbox%2Fmouse.c;h=ace7bca0c59aca82b172dd5b539d5398ed1bfe12;hb=889c5aab4f7f06ca396e5922ece436e48b88b098;hp=988e0147acee9dc169edda25323f20cbbe8d44bd;hpb=91e04979a675a75d3f20de98bf070c9fb1d8f3fa;p=chaz%2Fopenbox diff --git a/openbox/mouse.c b/openbox/mouse.c index 988e0147..ace7bca0 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); } @@ -87,6 +88,7 @@ static void clearall() g_free(b); } g_slist_free(bound_contexts[i]); + bound_contexts[i] = NULL; } } @@ -367,11 +369,11 @@ gboolean mouse_bind(char *buttonstr, char *contextstr, ObMouseAction mact, return TRUE; } -void mouse_startup() +void mouse_startup(gboolean reconfig) { } -void mouse_shutdown() +void mouse_shutdown(gboolean reconfig) { grab_all_clients(FALSE); clearall();