effects/diminactive: Ensure that m_activeWindow is always reset

As the FIXME comment says, a window can be deleted without prior
windowClosed signal.

BUG: 442222
This commit is contained in:
Vlad Zahorodnii 2023-01-17 13:00:43 +02:00
parent 361aa053e1
commit d57be742ff

View file

@ -369,6 +369,9 @@ void DimInactiveEffect::windowDeleted(EffectWindow *w)
// gets destroyed immediately. So, we have to remove active transitions
// for that window here, otherwise we'll crash in postPaintScreen.
m_transitions.remove(w);
if (m_activeWindow == w) {
m_activeWindow = nullptr;
}
}
void DimInactiveEffect::activeFullScreenEffectChanged()