From: Dana Jansens Date: Sat, 5 May 2007 01:01:58 +0000 (+0000) Subject: lied about using some events it wasnt using X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=288e37b031ef95c12f43e9ae4018127e7d6e8a1b;p=chaz%2Fopenbox lied about using some events it wasnt using --- diff --git a/openbox/moveresize.c b/openbox/moveresize.c index afd0de2a..868c0c25 100644 --- a/openbox/moveresize.c +++ b/openbox/moveresize.c @@ -407,12 +407,12 @@ gboolean moveresize_event(XEvent *e) start_y = e->xbutton.y_root; button = e->xbutton.button; /* this will end it now */ } - used = TRUE; + used = e->xbutton.button == button; } else if (e->type == ButtonRelease) { if (!button || e->xbutton.button == button) { moveresize_end(FALSE); + used = TRUE; } - used = TRUE; } else if (e->type == MotionNotify) { if (moving) { cur_x = start_cx + e->xmotion.x_root - start_x;