effects/fallapart: Avoid animating windows while there's a fullscreen effect

While there's a fullscreen effect, the fall apart effect should avoid
animating windows as it can corrupt or interfere with the active full
screen effect. This matches behavior of many other animation effects in
kwin.

BUG: 449844
This commit is contained in:
Vlad Zahorodnii 2022-02-09 15:09:58 +02:00
parent 20399e0c42
commit e419faee39

View file

@ -157,6 +157,8 @@ bool FallApartEffect::isRealWindow(EffectWindow* w)
void FallApartEffect::slotWindowClosed(EffectWindow* c) void FallApartEffect::slotWindowClosed(EffectWindow* c)
{ {
if (effects->activeFullScreenEffect())
return;
if (!isRealWindow(c)) if (!isRealWindow(c))
return; return;
if (!c->isVisible()) if (!c->isVisible())