summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-02-10 23:28:30 +0000
committerDana Jansens <danakj@orodu.net>2003-02-10 23:28:30 +0000
commitd993bcd9ad035a4f38cb7a3733586ee36bf2dfc9 (patch)
tree52fed59c1f0e12aedd06fe724ebbe169efe1cdf9
parent9676a6774ba097eb5bbdee8c95260762f6741bcc (diff)
include the desktop name if cycling on all desktops is enabled
-rw-r--r--scripts/stackedcycle.py6
1 files changed, 6 insertions, 0 deletions
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:]