From 5555ed28365a8046552dd6521d65aa1935ba141b Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Wed, 14 Dec 2022 16:54:08 +0200 Subject: [PATCH] scene: Fix a typo in WindowItem::updateShadowItem() Hopefully it's going to fix warnings about bad reference item in Item::stackBefore(). --- src/windowitem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/windowitem.cpp b/src/windowitem.cpp index 4980397c98..6270af38b7 100644 --- a/src/windowitem.cpp +++ b/src/windowitem.cpp @@ -208,7 +208,7 @@ void WindowItem::updateShadowItem() if (m_decorationItem) { m_shadowItem->stackBefore(m_decorationItem.get()); } else if (m_surfaceItem) { - m_shadowItem->stackBefore(m_decorationItem.get()); + m_shadowItem->stackBefore(m_surfaceItem.get()); } } else { m_shadowItem.reset();