X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=scripts%2Fstackedcycle.py;h=376297e180679672a2066b1f1590a76ead848170;hb=b18959e1bda52f807f62c95772c69ce3005215a7;hp=b78c37f525a5dda99c83b7727b217e3cc0bfd24d;hpb=82d147b5d74757ce6f1676aab16c9e6e1e837b4e;p=chaz%2Fopenbox diff --git a/scripts/stackedcycle.py b/scripts/stackedcycle.py index b78c37f5..376297e1 100644 --- a/scripts/stackedcycle.py +++ b/scripts/stackedcycle.py @@ -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:]