]> Dogcows Code - chaz/openbox/commitdiff
add a snap variable..
authorDana Jansens <danakj@orodu.net>
Sun, 2 Feb 2003 23:21:57 +0000 (23:21 +0000)
committerDana Jansens <danakj@orodu.net>
Sun, 2 Feb 2003 23:21:57 +0000 (23:21 +0000)
scripts/motion.py

index 845476780424ae74c2edde1f70887e7e2bc29f7c..9c8aa27c1820768c46a2fa416b34059bd73f80fb 100644 (file)
@@ -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 ...
This page took 0.022352 seconds and 4 git commands to generate.