projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
08e28f3
)
perhaps fix an infinate loop in here..
author
Dana Jansens
<danakj@orodu.net>
Tue, 6 Aug 2002 08:13:22 +0000
(08:13 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Tue, 6 Aug 2002 08:13:22 +0000
(08:13 +0000)
util/epist/screen.cc
patch
|
blob
|
history
diff --git
a/util/epist/screen.cc
b/util/epist/screen.cc
index 1dc32f0231b566c1b8413973ceeff493a78e9275..0ec679bbe48dc13e57ef7876f0c9bd094af82434 100644
(file)
--- 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;