Disable fallapart effect for not-visible windows

REVIEW: 106823
This commit is contained in:
Dario Cambié 2012-11-24 15:42:35 +01:00 committed by Martin Gräßlin
parent 420e226b12
commit a7fa887e49

View file

@ -148,6 +148,12 @@ void FallApartEffect::slotWindowClosed(EffectWindow* c)
{
if (!isRealWindow(c))
return;
if (c->isMinimized())
return;
if (!c->isOnCurrentDesktop())
return;
if (!c->isOnCurrentActivity())
return;
const void* e = c->data(WindowClosedGrabRole).value<void*>();
if (e && e != this)
return;