summaryrefslogtreecommitdiff
path: root/openbox
diff options
context:
space:
mode:
Diffstat (limited to 'openbox')
-rw-r--r--openbox/moveresize.c4
1 files changed, 2 insertions, 2 deletions
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;