From b001e857fcc93ef8ed462874183a601aba57d692 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 4 Feb 2003 10:19:59 +0000 Subject: [PATCH] watch for when theres no clients and avoid exceptions, just don't do shit all --- scripts/stackedcycle.py | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.45.2