From 0116e2c4492f18a6b04b5ccf69bf9fd4e9abea7c Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 26 Aug 2002 21:29:20 +0000 Subject: [PATCH] dont use what could be an invalid iterator --- util/epist/screen.cc | 5 +++-- 1 file 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(); } -- 2.45.2