]> Dogcows Code - chaz/openbox/blobdiff - scripts/motion.py
proper check for modifiers being released, not caring about added.
[chaz/openbox] / scripts / motion.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:
This page took 0.024575 seconds and 4 git commands to generate.