From 71f9b6cf3aa4bfa96a3303a81816a14863dc2e6a Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 11 Feb 2003 20:21:38 +0000 Subject: proper check for modifiers being released, not caring about added. --- scripts/motion.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'scripts/motion.py') 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: -- cgit v1.2.3