From: Dana Jansens Date: Tue, 18 Feb 2003 22:10:16 +0000 (+0000) Subject: oops messed up centered X-Git-Tag: openbox-3_0-rc1-RELEASE~2027 X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=781495e2eafd9dfe5592a2f5cefb905743208175;p=dana%2Fopenbox.git oops messed up centered --- diff --git a/scripts/motion.py b/scripts/motion.py index 410ee4d6..2f85ef7a 100644 --- a/scripts/motion.py +++ b/scripts/motion.py @@ -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)