scene: Fix a typo in WindowItem::updateShadowItem()

Hopefully it's going to fix warnings about bad reference item in
Item::stackBefore().
This commit is contained in:
Vlad Zahorodnii 2022-12-14 16:54:08 +02:00
parent 2a6e3b7ad8
commit 5555ed2836

View file

@ -208,7 +208,7 @@ void WindowItem::updateShadowItem()
if (m_decorationItem) { if (m_decorationItem) {
m_shadowItem->stackBefore(m_decorationItem.get()); m_shadowItem->stackBefore(m_decorationItem.get());
} else if (m_surfaceItem) { } else if (m_surfaceItem) {
m_shadowItem->stackBefore(m_decorationItem.get()); m_shadowItem->stackBefore(m_surfaceItem.get());
} }
} else { } else {
m_shadowItem.reset(); m_shadowItem.reset();