From: Dana Jansens Date: Sun, 2 Feb 2003 23:21:57 +0000 (+0000) Subject: add a snap variable.. X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;ds=inline;h=fd96ddd82e6c65de6a23141a53a4d544668fd11d;p=chaz%2Fopenbox add a snap variable.. --- diff --git a/scripts/motion.py b/scripts/motion.py index 84547678..9c8aa27c 100644 --- a/scripts/motion.py +++ b/scripts/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 ### ### ### @@ -87,6 +90,10 @@ def _do_move(): x = _cx + _dx y = _cy + _dy + global snap + if snap: + pass + global move_rubberband if move_rubberband: # draw the outline ...