Prevent potentially adding closed windows to the attention chain

CCBUG: 486693
This commit is contained in:
Vlad Zahorodnii 2024-06-10 16:20:29 +03:00
parent cfbee55c2a
commit cd2d5b07d5

View file

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