dont use what could be an invalid iterator

This commit is contained in:
Dana Jansens 2002-08-26 21:29:20 +00:00
parent da8d6b3f60
commit 0116e2c449

View file

@ -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();
}