X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fmouse.c;h=2f8604eb9796527e046e0ac9eb724855a57c566a;hb=3fd74abb3c2969f170d727154245cde3ef8a4b87;hp=ee14935417acf4430b2a40924c7cda53d26f0be9;hpb=567fd15eebdd44e50cef140419dbf7a336708109;p=chaz%2Fopenbox diff --git a/openbox/mouse.c b/openbox/mouse.c index ee149354..2f8604eb 100644 --- a/openbox/mouse.c +++ b/openbox/mouse.c @@ -155,7 +155,7 @@ void mouse_unbind_all(void) actions_act_unref(jt->data); g_slist_free(b->actions[j]); } - g_free(b); + g_slice_free(ObMouseBinding, b); } g_slist_free(bound_contexts[i]); bound_contexts[i] = NULL; @@ -200,7 +200,7 @@ void mouse_replay_pointer(void) { if (replay_pointer_needed) { /* replay the pointer event before any windows move */ - XAllowEvents(obt_display, ReplayPointer, event_curtime); + XAllowEvents(obt_display, ReplayPointer, event_time()); replay_pointer_needed = FALSE; } } @@ -390,7 +390,7 @@ gboolean mouse_bind(const gchar *buttonstr, const gchar *contextstr, } /* add the binding */ - b = g_new0(ObMouseBinding, 1); + b = g_slice_new0(ObMouseBinding); b->state = state; b->button = button; b->actions[mact] = g_slist_append(NULL, action);