diff --git a/shadow.cpp b/shadow.cpp index b5a7e08cef..de989c7955 100644 --- a/shadow.cpp +++ b/shadow.cpp @@ -206,6 +206,9 @@ bool Shadow::updateShadow() { QVector data = Shadow::readX11ShadowProperty(m_topLevel->window()); if (data.isEmpty()) { + if (m_topLevel && m_topLevel->effectWindow() && m_topLevel->effectWindow()->sceneWindow()) + m_topLevel->effectWindow()->sceneWindow()->updateShadow(0); + deleteLater(); return false; } init(data);