X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=scripts%2Fmotion.py;h=0ce865a3f39d8b41efc103681709eff03318bbdf;hb=299f7ad213532a76d748ce5ef02e7a147b75c1fc;hp=cc17803b794444b6c60c286d9521614aa3602601;hpb=56d2f942aedbd212779d40c36eda1a89c931e960;p=chaz%2Fopenbox diff --git a/scripts/motion.py b/scripts/motion.py index cc17803b..0ce865a3 100644 --- a/scripts/motion.py +++ b/scripts/motion.py @@ -105,8 +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() + x += area.position().x() + y += area.position().y() _popwidget.moveresize(otk.Rect(x, y, size.width(), size.height())) def _motion_grab(data):