diff --git a/effects/fallapart/fallapart.cpp b/effects/fallapart/fallapart.cpp index 5e08fd971d..df623fb836 100644 --- a/effects/fallapart/fallapart.cpp +++ b/effects/fallapart/fallapart.cpp @@ -163,6 +163,9 @@ void FallApartEffect::slotWindowClosed(EffectWindow* c) return; if (!c->isVisible()) return; + const void* e = c->data(WindowClosedGrabRole).value(); + if (e && e != this) + return; c->setData(WindowClosedGrabRole, QVariant::fromValue(static_cast(this))); windows[ c ] = 0; c->refWindow();