all repos — openbox @ 71f9b6cf3aa4bfa96a3303a81816a14863dc2e6a

openbox fork - make it a bit more like ryudo

proper check for modifiers being released, not caring about added.
Dana Jansens danakj@orodu.net
commit

71f9b6cf3aa4bfa96a3303a81816a14863dc2e6a

parent

7112755cfcda17e2c17360caf28407485e5befc0

2 files changed, 2 insertions(+), 3 deletions(-)

jump to
M scripts/motion.pyscripts/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:
M scripts/stackedcycle.pyscripts/stackedcycle.py

@@ -218,7 +218,7 @@ def grabfunc(self, data):

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?