_clients.remove(w);
_clients.push_front(w);
+ _active = _clients.begin();
w->raise();
_cycling = false;
* 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();
}