X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fmouse.c;h=c0fcade49556e090e62b0a9de9db1403376422dc;hb=0aa7f70d91245d4a523c625d978063675ffc3ac7;hp=703ea36ba32f822c2b91ac6fd8b53cfe52c89b1e;hpb=bdc10887cbb7a51c1231978806963e622619e2f9;p=chaz%2Fopenbox diff --git a/openbox/mouse.c b/openbox/mouse.c index 703ea36b..c0fcade4 100644 --- a/openbox/mouse.c +++ b/openbox/mouse.c @@ -167,8 +167,7 @@ static gboolean fire_binding(ObMouseAction a, ObFrameContext context, /* if not bound, then nothing to do! */ if (it == NULL) return FALSE; - for (it = b->actions[a]; it; it = it->next) - action_run_mouse(it->data, c, state, button, x, y); + action_run_mouse(b->actions[a], c, state, button, x, y); return TRUE; } @@ -214,6 +213,7 @@ void mouse_event(ObClient *client, XEvent *e) int junk1, junk2; Window wjunk; guint ujunk, b, w, h; + /* this can cause errors to occur when the window closes */ xerror_set_ignore(TRUE); junk1 = XGetGeometry(ob_display, e->xbutton.window, &wjunk, &junk1, &junk2, &w, &h, &b, &ujunk);