include the desktop name if cycling on all desktops is enabled
This commit is contained in:
parent
9676a6774b
commit
d993bcd9ad
1 changed files with 6 additions and 0 deletions
|
@ -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:]
|
||||
|
|
Loading…
Reference in a new issue