forked from github_mirror/framelesshelper
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:
parent
76c13cf9bf
commit
9904a5077a
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue