diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-08-06 08:13:22 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-08-06 08:13:22 +0000 |
| commit | a2a348c233247315e39c8a677064da51de57a9d5 (patch) | |
| tree | 9b0e401107b498c03bc1f91751579eb3db3ab68f | |
| parent | 08e28f38a946e66932ed7cb3314aaffcbbc279a2 (diff) | |
perhaps fix an infinate loop in here..
| -rw-r--r-- | util/epist/screen.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/util/epist/screen.cc b/util/epist/screen.cc index 1dc32f02..0ec679bb 100644 --- a/util/epist/screen.cc +++ b/util/epist/screen.cc @@ -490,8 +490,6 @@ void screen::cycleWindow(const bool forward, const bool allscreens, target = begin; } else { ++target; - if (target == end) - target = begin; } } else { if (target == begin) @@ -503,6 +501,10 @@ void screen::cycleWindow(const bool forward, const bool allscreens, if (target == _active) return; + // start back at the beginning of the loop + if (target == end) + continue; + // determine if this window is invalid for cycling to const XWindow *t = *target; if (t->iconic()) continue; |
