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
This commit is contained in:
Thomas Lübking 2012-01-24 16:58:33 +01:00
parent a94932475c
commit 7acf1330bd

View file

@ -206,6 +206,9 @@ bool Shadow::updateShadow()
{
QVector<long> 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);