From: Dana Jansens Date: Mon, 10 Feb 2003 23:28:30 +0000 (+0000) Subject: include the desktop name if cycling on all desktops is enabled X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=d993bcd9ad035a4f38cb7a3733586ee36bf2dfc9;p=chaz%2Fopenbox include the desktop name if cycling on all desktops is enabled --- 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:]