From: Dana Jansens Date: Wed, 19 Feb 2003 01:17:14 +0000 (+0000) Subject: position relative to the window properly X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=56d2f942aedbd212779d40c36eda1a89c931e960;p=chaz%2Fopenbox position relative to the window properly --- 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):