]> Dogcows Code - chaz/openbox/commitdiff
watch for when theres no clients and avoid exceptions, just don't do shit all
authorDana Jansens <danakj@orodu.net>
Tue, 4 Feb 2003 10:19:59 +0000 (10:19 +0000)
committerDana Jansens <danakj@orodu.net>
Tue, 4 Feb 2003 10:19:59 +0000 (10:19 +0000)
scripts/stackedcycle.py

index 5731a56456b82f641687d393d63ea48c18d9d6eb..a632b3183f6ddb7d547160e0515573c9b0f53828 100644 (file)
@@ -192,6 +192,8 @@ class cycledata:
             # popup disappears, screwing up the focus
             ob.mgrab(self.screen.number())
 
             # popup disappears, screwing up the focus
             ob.mgrab(self.screen.number())
 
+        if not len(self.clients): return # don't both doing anything
+        
         self.menuwidgets[self.menupos].unfocus()
         if forward:
             self.menupos += 1
         self.menuwidgets[self.menupos].unfocus()
         if forward:
             self.menupos += 1
This page took 0.024016 seconds and 4 git commands to generate.