watch for when theres no clients and avoid exceptions, just don't do shit all
This commit is contained in:
parent
77ba370207
commit
b001e857fc
1 changed files with 2 additions and 0 deletions
|
@ -192,6 +192,8 @@ class cycledata:
|
||||||
# popup disappears, screwing up the focus
|
# popup disappears, screwing up the focus
|
||||||
ob.mgrab(self.screen.number())
|
ob.mgrab(self.screen.number())
|
||||||
|
|
||||||
|
if not len(self.clients): return # don't both doing anything
|
||||||
|
|
||||||
self.menuwidgets[self.menupos].unfocus()
|
self.menuwidgets[self.menupos].unfocus()
|
||||||
if forward:
|
if forward:
|
||||||
self.menupos += 1
|
self.menupos += 1
|
||||||
|
|
Loading…
Reference in a new issue