summaryrefslogtreecommitdiff
path: root/openbox
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-05-05 01:01:58 +0000
committerDana Jansens <danakj@orodu.net>2007-05-05 01:01:58 +0000
commit288e37b031ef95c12f43e9ae4018127e7d6e8a1b (patch)
treebe3957af3d2150a2b025f5ae982d23617de29c6e /openbox
parent9a9e3f6bf6be75094636e37d54fb16e4456b43be (diff)
lied about using some events it wasnt using
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;