summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-02-03 03:04:31 +0000
committerDana Jansens <danakj@orodu.net>2003-02-03 03:04:31 +0000
commitba87284397e058fc477a04fba2ff2eb815a33de0 (patch)
tree0647e76ff8022455bc3c28ebd78c91cdc7278e96
parent8332db58809bdd951855019d74281bf154bbf0e0 (diff)
move windows based on their *frame* not the client
-rw-r--r--scripts/motion.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/scripts/motion.py b/scripts/motion.py
index a6602e2d..b0a6651d 100644
--- a/scripts/motion.py
+++ b/scripts/motion.py
@@ -92,8 +92,9 @@ _last_y = 0
def _do_move():
global _screen, _client, _cx, _cy, _dx, _dy
- x = _cx + _dx
- y = _cy + _dy
+ # get destination x/y for the *frame*
+ x = _cx + _dx + _client.frame.rect().x() - _client.area().x()
+ y = _cy + _dy + _client.frame.rect().y() - _client.area().y()
global edge_resistance
global _last_x, _last_y
@@ -133,7 +134,8 @@ def _do_move():
# draw the outline ...
f=0
else:
- _client.move(x, y)
+ print "moving " + str(x) + " " + str(y)
+ _client.move(x, y, 1) # move the frame to the position
global move_popup
if move_popup: