summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-02-19 01:17:14 +0000
committerDana Jansens <danakj@orodu.net>2003-02-19 01:17:14 +0000
commit56d2f942aedbd212779d40c36eda1a89c931e960 (patch)
tree3d6f1cf618d52ade71ed552f9a40bd7408d580d0 /scripts
parentd2a1ecb1b50902d262a74e347203a36a961e1d92 (diff)
position relative to the window properly
Diffstat (limited to 'scripts')
-rw-r--r--scripts/motion.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/motion.py b/scripts/motion.py
index bf52bd96..cc17803b 100644
--- a/scripts/motion.py
+++ b/scripts/motion.py
@@ -105,6 +105,8 @@ def _place_popup():
except: x = y = 0
if x < 0: x += area.right() - size.width() + 2
if y < 0: y += area.bottom() - size.height() + 2
+ x += area.position.x()
+ y += area.position.y()
_popwidget.moveresize(otk.Rect(x, y, size.width(), size.height()))
def _motion_grab(data):