summaryrefslogtreecommitdiff
path: root/util/epist/screen.cc
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-08-26 21:29:20 +0000
committerDana Jansens <danakj@orodu.net>2002-08-26 21:29:20 +0000
commit0116e2c4492f18a6b04b5ccf69bf9fd4e9abea7c (patch)
tree5d6ddc5e56e6f1ca5f6852c2656482f709a065c0 /util/epist/screen.cc
parentda8d6b3f60a3eb39ca47cfcb9aa5b2f445050102 (diff)
dont use what could be an invalid iterator
Diffstat (limited to 'util/epist/screen.cc')
-rw-r--r--util/epist/screen.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/util/epist/screen.cc b/util/epist/screen.cc
index 416bb9bd..f0fb79ea 100644
--- a/util/epist/screen.cc
+++ b/util/epist/screen.cc
@@ -546,8 +546,9 @@ void screen::updateActiveWindow() {
* cycle stack.
*/
if (_stacked_cycling && !_cycling) {
- _clients.remove(*_active);
- _clients.push_front(*_active);
+ XWindow *win = *_active;
+ _clients.remove(win);
+ _clients.push_front(win);
_active = _clients.begin();
}