From eaed5d803afc59fd4fce31ea5bfe838fc292e7d7 Mon Sep 17 00:00:00 2001 From: wjyrich Date: Fri, 13 Jun 2025 11:35:06 +0800 Subject: [PATCH] fix: fix effectScene judging conditions. as title. Log: --- xcb/dnotitlebarwindowhelper.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xcb/dnotitlebarwindowhelper.cpp b/xcb/dnotitlebarwindowhelper.cpp index 8252c76b..f1758cbc 100644 --- a/xcb/dnotitlebarwindowhelper.cpp +++ b/xcb/dnotitlebarwindowhelper.cpp @@ -398,7 +398,7 @@ void DNoTitlebarWindowHelper::updateWindowEffectFromProperty() const QVariant &v = m_window->property("_d_windowEffect"); const quint32 effectScene = qvariant_cast(v); - if (effectScene) { + if (v.isValid()) { setWindowEffect(effectScene); } else { resetProperty("windowEffect"); @@ -410,7 +410,7 @@ void DNoTitlebarWindowHelper::updateWindowStartUpEffectFromProperty() const QVariant &v = m_window->property("_d_windowStartUpEffect"); const quint32 effectType = qvariant_cast(v); - if (effectType) { + if (v.isValid()) { setWindowStartUpEffect(effectType); } else { resetProperty("windowStartUpEffect");