all repos — openbox @ fd96ddd82e6c65de6a23141a53a4d544668fd11d

openbox fork - make it a bit more like ryudo

add a snap variable..
Dana Jansens danakj@orodu.net
commit

fd96ddd82e6c65de6a23141a53a4d544668fd11d

parent

a527c30f115022d92e35b1e0754d594dab55fca7

1 files changed, 7 insertions(+), 0 deletions(-)

jump to
M scripts/motion.pyscripts/motion.py

@@ -6,6 +6,9 @@

############################################################################# ### Options that can be modified to change the functions' behaviors. ### ### ### +# snap - snap windows to other windows and screen edges while moving them ### +snap = 1 +### # move_popup - display a coordinates popup when moving windows. ### move_popup = 1 ### ### ###

@@ -86,6 +89,10 @@ global _screen, _client, _cx, _cy, _dx, _dy

x = _cx + _dx y = _cy + _dy + + global snap + if snap: + pass global move_rubberband if move_rubberband: