From: Dana Jansens Date: Tue, 11 Feb 2003 20:21:38 +0000 (+0000) Subject: proper check for modifiers being released, not caring about added. X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=71f9b6cf3aa4bfa96a3303a81816a14863dc2e6a;p=chaz%2Fopenbox proper check for modifiers being released, not caring about added. --- diff --git a/scripts/motion.py b/scripts/motion.py index ef05b279..b1e69d84 100644 --- a/scripts/motion.py +++ b/scripts/motion.py @@ -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: diff --git a/scripts/stackedcycle.py b/scripts/stackedcycle.py index 1667a54a..76658ae1 100644 --- a/scripts/stackedcycle.py +++ b/scripts/stackedcycle.py @@ -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?