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:
parent
a94932475c
commit
7acf1330bd
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue