]> Dogcows Code - chaz/openbox/commitdiff
oops messed up centered
authorDana Jansens <danakj@orodu.net>
Tue, 18 Feb 2003 22:10:16 +0000 (22:10 +0000)
committerDana Jansens <danakj@orodu.net>
Tue, 18 Feb 2003 22:10:16 +0000 (22:10 +0000)
scripts/motion.py

index 410ee4d6c1e775d6330ccfb930ec60e0a654919c..2f85ef7ae3855b510371de6d4d615e3122a92a4c 100644 (file)
@@ -149,13 +149,13 @@ def _do_move(final):
             _poplabel = otk.Label(_popwidget)
             _poplabel.setHighlighted(1)
         _poplabel.setText(text)
+        size = _poplabel.minSize()
         if POPUP_CENTERED:
             scsize = ob.openbox.screen(_screen).size()
             x = (scsize.width() - size.width()) / 2
             y = (scsize.height() - size.height()) / 2
         else:
             x = y = 0
-        size = _poplabel.minSize()
         _popwidget.moveresize(otk.Rect(x, y, size.width(), size.height()))
         _popwidget.show(1)
 
@@ -237,13 +237,13 @@ def _do_resize():
             _poplabel = otk.Label(_popwidget)
             _poplabel.setHighlighted(1)
         _poplabel.setText(text)
+        size = _poplabel.minSize()
         if POPUP_CENTERED:
             scsize = ob.openbox.screen(_screen).size()
             x = (scsize.width() - size.width()) / 2
             y = (scsize.height() - size.height()) / 2
         else:
             x = y = 0
-        size = _poplabel.minSize()
         _popwidget.moveresize(otk.Rect(x, y, size.width(), size.height()))
         _popwidget.show(1)
 
This page took 0.023732 seconds and 4 git commands to generate.