perhaps fix an infinate loop in here..
This commit is contained in:
parent
08e28f38a9
commit
a2a348c233
1 changed files with 4 additions and 2 deletions
|
@ -490,8 +490,6 @@ void screen::cycleWindow(const bool forward, const bool allscreens,
|
||||||
target = begin;
|
target = begin;
|
||||||
} else {
|
} else {
|
||||||
++target;
|
++target;
|
||||||
if (target == end)
|
|
||||||
target = begin;
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (target == begin)
|
if (target == begin)
|
||||||
|
@ -503,6 +501,10 @@ void screen::cycleWindow(const bool forward, const bool allscreens,
|
||||||
if (target == _active)
|
if (target == _active)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
// start back at the beginning of the loop
|
||||||
|
if (target == end)
|
||||||
|
continue;
|
||||||
|
|
||||||
// determine if this window is invalid for cycling to
|
// determine if this window is invalid for cycling to
|
||||||
const XWindow *t = *target;
|
const XWindow *t = *target;
|
||||||
if (t->iconic()) continue;
|
if (t->iconic()) continue;
|
||||||
|
|
Loading…
Reference in a new issue