]> Dogcows Code - chaz/openbox/blobdiff - scripts/motion.py
use a focuslabel
[chaz/openbox] / scripts / motion.py
index 8cc890503072351565a791135f7d405296f902c6..c32c1e62a7fe86c014253a5c6af6a030ebef1432 100644 (file)
@@ -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()
This page took 0.021666 seconds and 4 git commands to generate.