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>
This commit is contained in:
Yuhang Zhao 2021-12-20 10:51:36 +08:00
parent 76c13cf9bf
commit 9904a5077a
1 changed files with 1 additions and 1 deletions

View File

@ -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 // 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 // do not appear because you don't need them (because you can't resize
// a window when it's maximized unless you restore it). // 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->top += resizeBorderThickness;
clientRect->bottom -= resizeBorderThickness; clientRect->bottom -= resizeBorderThickness;
clientRect->left += resizeBorderThickness; clientRect->left += resizeBorderThickness;