From 7b3c58280b13ec0ba052ad7c3f2751d22fb9f08a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=BCbking?= Date: Tue, 24 Jan 2012 16:58:33 +0100 Subject: [PATCH] Support withdrawal of shadows The Oxygen deco uses this to remove built-in shadows from decorated windows when adding (legacy...) decoration shadows CCBUG: 291774 REVIEW: 103751 (cherry picked from commit a97bdc64fa2a676f99738abd371a99126fb8e93d) --- shadow.cpp | 3 +++ 1 file changed, 3 insertions(+) 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);