include the desktop name if cycling on all desktops is enabled

This commit is contained in:
Dana Jansens 2003-02-10 23:28:30 +00:00
parent 9676a6774b
commit d993bcd9ad

View file

@ -117,6 +117,12 @@ class _cycledata:
if c.iconic(): t = c.iconTitle()
else: t = c.title()
if INCLUDE_ALL_DESKTOPS:
d = c.desktop()
if d == 0xffffffff: d = self.screen.desktop()
t = self.screen.desktopName(d) + " - " + t
if len(t) > TITLE_SIZE_LIMIT: # limit the length of titles
t = t[:TITLE_SIZE_LIMIT / 2 - 2] + "..." + \
t[0 - TITLE_SIZE_LIMIT / 2 - 2:]