]> Dogcows Code - chaz/openbox/commitdiff
lied about using some events it wasnt using
authorDana Jansens <danakj@orodu.net>
Sat, 5 May 2007 01:01:58 +0000 (01:01 +0000)
committerDana Jansens <danakj@orodu.net>
Sat, 5 May 2007 01:01:58 +0000 (01:01 +0000)
openbox/moveresize.c

index afd0de2abbf11086b318599f6a5b533638f289e6..868c0c25ceb2477906cd21bbf8a296fbe8d9ecbd 100644 (file)
@@ -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;
This page took 0.028863 seconds and 4 git commands to generate.