dont use what could be an invalid iterator
Dana Jansens danakj@orodu.net
1 files changed,
3 insertions(+),
2 deletions(-)
jump to
M
util/epist/screen.cc
→
util/epist/screen.cc
@@ -546,8 +546,9 @@ /* if we're not cycling and a window gets focus, add it to the top of the
* 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(); }