From 42452085f7473e0af814abdee2828f52abcbe7ba Mon Sep 17 00:00:00 2001 From: Sine Striker <trueful@163.com> Date: 周六, 24 2月 2024 18:40:04 +0800 Subject: [PATCH] Workaround for issue #23 --- 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 3b441c0..2665ac4 100644 --- a/src/core/contexts/abstractwindowcontext.cpp +++ b/src/core/contexts/abstractwindowcontext.cpp @@ -185,7 +185,7 @@ void AbstractWindowContext::virtual_hook(int id, void *data) { switch (id) { case CentralizeHook: { - if (!m_windowHandle) + if (!m_windowId) return; QRect windowGeometry = m_delegate->getGeometry(m_host); @@ -199,7 +199,7 @@ } case RaiseWindowHook: { - if (!m_windowHandle) + if (!m_windowId) return; m_delegate->setWindowVisible(m_host, true); -- Gitblit v1.9.1