diff --git a/effects.cpp b/effects.cpp index 3aa58e72df..e5af332b7b 100644 --- a/effects.cpp +++ b/effects.cpp @@ -431,6 +431,10 @@ void EffectsHandlerImpl::slotDesktopChanged(int old) void EffectsHandlerImpl::slotWindowDamaged(Toplevel* t, const QRect& r) { + if (!t->effectWindow()) { + // can happen during tear down of window + return; + } emit windowDamaged(t->effectWindow(), r); }