]> Dogcows Code - chaz/openbox/blobdiff - scripts/stackedcycle.py
provide access to the desktop names
[chaz/openbox] / scripts / stackedcycle.py
index b78c37f525a5dda99c83b7727b217e3cc0bfd24d..376297e180679672a2066b1f1590a76ead848170 100644 (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:]
This page took 0.019885 seconds and 4 git commands to generate.