From: Dana Jansens Date: Tue, 4 Feb 2003 10:19:59 +0000 (+0000) Subject: watch for when theres no clients and avoid exceptions, just don't do shit all X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;ds=sidebyside;h=b001e857fcc93ef8ed462874183a601aba57d692;p=chaz%2Fopenbox watch for when theres no clients and avoid exceptions, just don't do shit all --- diff --git a/scripts/stackedcycle.py b/scripts/stackedcycle.py index 5731a564..a632b318 100644 --- a/scripts/stackedcycle.py +++ b/scripts/stackedcycle.py @@ -192,6 +192,8 @@ class cycledata: # 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