X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=openbox%2Fmouse.c;h=ab628ff3a5652ed5311983c1a24543ec0c9a30be;hb=396eb330ac99708de781b6ef192cfda0a1afe720;hp=25068401362842542a6b9edbc49d295bab956c9a;hpb=78282959f970d28131e6aa8d66adce359aa145dc;p=chaz%2Fopenbox diff --git a/openbox/mouse.c b/openbox/mouse.c index 25068401..ab628ff3 100644 --- a/openbox/mouse.c +++ b/openbox/mouse.c @@ -107,20 +107,23 @@ static gboolean fire_binding(ObMouseAction a, ObFrameContext context, if (it == NULL) return FALSE; for (it = b->actions[a]; it; it = it->next) - action_run_mouse(it->data, c, context, state, button, x, y); + action_run_mouse(it->data, c, state, button, x, y); return TRUE; } -void mouse_event(ObClient *client, ObFrameContext context, XEvent *e) +void mouse_event(ObClient *client, XEvent *e) { static Time ltime; static guint button = 0, state = 0, lbutton = 0; - static Window lwindow = None; static int px, py; + + ObFrameContext context; gboolean click = FALSE; gboolean dclick = FALSE; + context = frame_context(client, e->xany.window); + switch (e->type) { case ButtonPress: px = e->xbutton.x_root;