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");