From 89027ec0c8faa85aacc28c6629e444cff767e5d9 Mon Sep 17 00:00:00 2001 From: Yuhang Zhao <2546789017@qq.com> Date: Wed, 11 Aug 2021 19:48:02 +0800 Subject: [PATCH] Minor tweaks Signed-off-by: Yuhang Zhao <2546789017@qq.com> --- framelesshelper_win32.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/framelesshelper_win32.cpp b/framelesshelper_win32.cpp index 7078fd2..ad454aa 100644 --- a/framelesshelper_win32.cpp +++ b/framelesshelper_win32.cpp @@ -573,8 +573,7 @@ bool FramelessHelperWin::nativeEventFilter(const QByteArray &eventType, void *me const int rbh = Utilities::getSystemMetric(window, SystemMetric::ResizeBorderHeight, true); const int tbh = Utilities::getSystemMetric(window, SystemMetric::TitleBarHeight, true); bool isTitleBar = false; - if ((window->windowState() == Qt::WindowMaximized) - || (window->windowState() == Qt::WindowFullScreen)) { + if (IsMaximized(msg->hwnd) || (window->windowState() == Qt::WindowFullScreen)) { isTitleBar = (localMouse.y() >= 0) && (localMouse.y() <= tbh) && (localMouse.x() >= 0) && (localMouse.x() <= ww) && !Utilities::isHitTestVisibleInChrome(window);