]> Dogcows Code - chaz/openbox/commitdiff
proper check for modifiers being released, not caring about added.
authorDana Jansens <danakj@orodu.net>
Tue, 11 Feb 2003 20:21:38 +0000 (20:21 +0000)
committerDana Jansens <danakj@orodu.net>
Tue, 11 Feb 2003 20:21:38 +0000 (20:21 +0000)
scripts/motion.py
scripts/stackedcycle.py

index ef05b2792a49eb1d24c15be3711fccc58f5fd951..b1e69d846b0ba861fab6753cf95f8ac86a666a8a 100644 (file)
@@ -81,8 +81,7 @@ def _motion_grab(data):
     global _motion_mask, _inmove, _inresize;
 
     # are all the modifiers this started with still pressed?
-    print _motion_mask, data.state
-    if not _motion_mask == data.state:
+    if not _motion_mask & data.state:
         if _inmove:
             _end_move(data)
         elif _inresize:
index 1667a54aad7bab4aebaf2081194f3036f08888b6..76658ae1fe9384ea6623a2a290e31c831fc017b6 100644 (file)
@@ -218,7 +218,7 @@ class _cycledata:
         done = 0
         notreverting = 1
         # have all the modifiers this started with been released?
-        if not self.state == data.state:
+        if not self.state & data.state:
             done = 1
         elif data.action == ob.KeyAction.Press:
             # has Escape been pressed?
This page took 0.023484 seconds and 4 git commands to generate.