X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fmouse.c;h=78e25d8966275c23d9d8f1b384fa86328ce798ca;hb=6142eb3a48c78de29d0bce1d3ee5686f1bbf7ef9;hp=8b0cfccbd0a0b887e2de95ff2a7d4e449958f92c;hpb=5eba6007e78eb52da0a20e954fec9d88124c026d;p=chaz%2Fopenbox diff --git a/openbox/mouse.c b/openbox/mouse.c index 8b0cfccb..78e25d89 100644 --- a/openbox/mouse.c +++ b/openbox/mouse.c @@ -205,6 +205,11 @@ void mouse_event(ObClient *client, XEvent *e) e->xbutton.x_root, e->xbutton.y_root, e->xbutton.time); + /* if the bindings grab the pointer, there won't be a ButtonRelease + event for us */ + if (grab_on_pointer()) + button = 0; + if (CLIENT_CONTEXT(context, client)) { /* Replay the event, so it goes to the client*/ XAllowEvents(ob_display, ReplayPointer, event_curtime);