dont use what could be an invalid iterator
This commit is contained in:
parent
da8d6b3f60
commit
0116e2c449
1 changed files with 3 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue