From fee0c64a8f8d6237f94457b608cc09614514f9b5 Mon Sep 17 00:00:00 2001 From: Sine Striker <trueful@163.com> Date: 周六, 23 12月 2023 15:00:35 +0800 Subject: [PATCH] Fix window overflow --- src/core/contexts/abstractwindowcontext.cpp | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/contexts/abstractwindowcontext.cpp b/src/core/contexts/abstractwindowcontext.cpp index d2da16f..de9674c 100644 --- a/src/core/contexts/abstractwindowcontext.cpp +++ b/src/core/contexts/abstractwindowcontext.cpp @@ -54,7 +54,7 @@ if (!attribute.isValid()) { return true; } - if (m_windowHandle && !windowAttributeChanged(key, attribute, {})) { + if (!m_windowHandle || !windowAttributeChanged(key, attribute, {})) { return false; } m_windowAttributes.insert(key, attribute); @@ -63,7 +63,7 @@ if (it.value() == attribute) return true; - if (m_windowHandle && !windowAttributeChanged(key, attribute, it.value())) { + if (!m_windowHandle || !windowAttributeChanged(key, attribute, it.value())) { return false; } -- Gitblit v1.9.1