diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-02-04 10:19:59 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-02-04 10:19:59 +0000 |
| commit | b001e857fcc93ef8ed462874183a601aba57d692 (patch) | |
| tree | a811091497199a498a5fbf1e40a9fcee83941a25 | |
| parent | 77ba370207752fea0fdb2ae88e49740af27fc2a6 (diff) | |
watch for when theres no clients and avoid exceptions, just don't do shit all
| -rw-r--r-- | scripts/stackedcycle.py | 2 |
1 files changed, 2 insertions, 0 deletions
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 |
