X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=scripts%2Fmotion.py;h=c32c1e62a7fe86c014253a5c6af6a030ebef1432;hb=69d12b5ee2e8da238ac2fca5606cc25ddaa07523;hp=8cc890503072351565a791135f7d405296f902c6;hpb=220b5c40f91c6509951ccd0d506a9bd77d9d6bac;p=chaz%2Fopenbox diff --git a/scripts/motion.py b/scripts/motion.py index 8cc89050..c32c1e62 100644 --- a/scripts/motion.py +++ b/scripts/motion.py @@ -10,7 +10,7 @@ EDGE_RESISTANCE = 10 """The amount of resistance to provide to moving a window past a screen boundary. Specify a value of 0 to disable edge resistance.""" MOVE_POPUP = 1 -"""Display a coordinates popup when moving windows." +"""Display a coordinates popup when moving windows.""" MOVE_RUBBERBAND = 0 """NOT IMPLEMENTED (yet?) Display an outline while moving instead of moving the actual window, @@ -149,8 +149,8 @@ def _do_move(): otk.Widget.Horizontal, 0, style.bevelWidth(), 1) _popwidget.setTexture(style.titlebarFocusBackground()) - _poplabel = otk.Label(_popwidget) - _poplabel.setTexture(style.labelFocusBackground()) + _poplabel = otk.FocusLabel(_popwidget) + _poplabel.focus() _poplabel.fitString(text) _poplabel.setText(text) _popwidget.update() @@ -238,8 +238,8 @@ def _do_resize(): otk.Widget.Horizontal, 0, style.bevelWidth(), 1) _popwidget.setTexture(style.titlebarFocusBackground()) - _poplabel = otk.Label(_popwidget) - _poplabel.setTexture(style.labelFocusBackground()) + _poplabel = otk.FocusLabel(_popwidget) + _poplabel.focus() _poplabel.fitString(text) _poplabel.setText(text) area = otk.display.screenInfo(_screen).rect()