From 9904a5077ada12e791807cae1571161b3035c1fe Mon Sep 17 00:00:00 2001 From: Yuhang Zhao <2546789017@qq.com> Date: Mon, 20 Dec 2021 10:51:36 +0800 Subject: [PATCH] Fix top part be cut-off for some pixels when maximized Root cause: forgot to change the passed parameter after the function signature changed Fixes: #77 Signed-off-by: Yuhang Zhao <2546789017@qq.com> --- framelesshelper_win32.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framelesshelper_win32.cpp b/framelesshelper_win32.cpp index e05e2ba..5b0ca36 100644 --- a/framelesshelper_win32.cpp +++ b/framelesshelper_win32.cpp @@ -257,7 +257,7 @@ bool FramelessHelperWin::nativeEventFilter(const QByteArray &eventType, void *me // then the window is clipped to the monitor so that the resize handle // do not appear because you don't need them (because you can't resize // a window when it's maximized unless you restore it). - const int resizeBorderThickness = Utilities::getSystemMetric(window, SystemMetric::ResizeBorderThickness, true); + const int resizeBorderThickness = Utilities::getSystemMetric(window, SystemMetric::ResizeBorderThickness, true, true); clientRect->top += resizeBorderThickness; clientRect->bottom -= resizeBorderThickness; clientRect->left += resizeBorderThickness;