]> Dogcows Code - chaz/openbox/commitdiff
include the desktop name if cycling on all desktops is enabled
authorDana Jansens <danakj@orodu.net>
Mon, 10 Feb 2003 23:28:30 +0000 (23:28 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 10 Feb 2003 23:28:30 +0000 (23:28 +0000)
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.022322 seconds and 4 git commands to generate.