all repos — openbox @ 5e24320bca4a0e9af721096f0bfa68ee08969bf0

openbox fork - make it a bit more like ryudo

add margins, and limit title lengths
Dana Jansens danakj@orodu.net
commit

5e24320bca4a0e9af721096f0bfa68ee08969bf0

parent

ff0f2bd335a9c4b5c3c7a30f8c183fb20b1bb247

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

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

@@ -176,9 +176,11 @@ desktop = screen.desktop()

if client and (client.desktop() == desktop and \ client.normal()): t = client.title() + if len(t) > 50: # limit the length of titles + t = t[:24] + "..." + t[-24:] titles.append(t) _list_windows.append(c) - l = font.measureString(t) + l = font.measureString(t) + 10 # add margin if l > longest: longest = l if len(titles): for t in titles: