Prevent potentially adding closed windows to the attention chain
CCBUG: 486693
This commit is contained in:
parent
cfbee55c2a
commit
cd2d5b07d5
1 changed files with 3 additions and 0 deletions
|
@ -625,6 +625,9 @@ bool Workspace::restoreFocus()
|
|||
|
||||
void Workspace::windowAttentionChanged(Window *window, bool set)
|
||||
{
|
||||
if (window->isDeleted()) {
|
||||
return;
|
||||
}
|
||||
if (set) {
|
||||
attention_chain.removeAll(window);
|
||||
attention_chain.prepend(window);
|
||||
|
|
Loading…
Reference in a new issue