]> Dogcows Code - chaz/openbox/commitdiff
position relative to the window properly
authorDana Jansens <danakj@orodu.net>
Wed, 19 Feb 2003 01:17:14 +0000 (01:17 +0000)
committerDana Jansens <danakj@orodu.net>
Wed, 19 Feb 2003 01:17:14 +0000 (01:17 +0000)
scripts/motion.py

index bf52bd9634698a7f5b5a87edfd12b5e87d77267d..cc17803b794444b6c60c286d9521614aa3602601 100644 (file)
@@ -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
         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):
     _popwidget.moveresize(otk.Rect(x, y, size.width(), size.height()))
 
 def _motion_grab(data):
This page took 0.023322 seconds and 4 git commands to generate.