diff --git a/shadow.cpp b/shadow.cpp index 65b4080914..76792ad8bd 100644 --- a/shadow.cpp +++ b/shadow.cpp @@ -365,6 +365,10 @@ bool Shadow::updateShadow() } } } + if (!m_topLevel) { + clear(); + return false; + } auto data = Shadow::readX11ShadowProperty(m_topLevel->window()); if (data.isEmpty()) { clear();