all repos — openbox @ 781495e2eafd9dfe5592a2f5cefb905743208175

openbox fork - make it a bit more like ryudo

oops messed up centered
Dana Jansens danakj@orodu.net
commit

781495e2eafd9dfe5592a2f5cefb905743208175

parent

14813743539bafc42c91f5aedd28788dcd64ea5e

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M scripts/motion.pyscripts/motion.py

@@ -149,13 +149,13 @@ otk.Widget.Horizontal, 0, 1)

_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 @@ otk.Widget.Horizontal, 0, 1)

_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)