dont break the focused window iterator
This commit is contained in:
parent
afbc554684
commit
da8d6b3f60
1 changed files with 11 additions and 9 deletions
|
@ -541,16 +541,18 @@ void screen::updateActiveWindow() {
|
|||
|
||||
_active = it;
|
||||
|
||||
/* 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);
|
||||
}
|
||||
if (_active != end) {
|
||||
/* 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);
|
||||
_active = _clients.begin();
|
||||
}
|
||||
|
||||
if (it != end)
|
||||
_last_active = it;
|
||||
_last_active = _active;
|
||||
}
|
||||
|
||||
/* cout << "Active window is now: ";
|
||||
if (_active == _clients.end()) cout << "None\n";
|
||||
|
|
Loading…
Reference in a new issue