]> Dogcows Code - chaz/openbox/blobdiff - scripts/focus.py
add motion.py, which provides funtions for moving/resizing a window interactively
[chaz/openbox] / scripts / focus.py
index 5ae40cf273e483aa7cb71295a0d7d8beef15e398..adba37258fb89ed93a885e010b9165c9abad065e 100644 (file)
@@ -203,12 +203,12 @@ def _create_popup_list(data):
                 t = t[:24] + "..." + t[-24:]
             titles.append(t)
             _list_windows.append(c)
-            l = font.measureString(t) + 10 # add margin
+            l = font.measureString(t)
             if l > longest: longest = l
     if len(titles) > 1:
         for t in titles:
             w = otk.FocusLabel(_list_widget)
-            w.resize(longest, height)
+            w.fitSize(longest, height)
             w.setText(t)
             w.unfocus()
             _list_labels.append(w)
This page took 0.023147 seconds and 4 git commands to generate.