From fca63dbf545d32c66e2331b81e83c1ec375ffe0e Mon Sep 17 00:00:00 2001 From: Yuhang Zhao <2546789017@qq.com> Date: Wed, 28 Apr 2021 11:39:51 +0800 Subject: [PATCH] Minor improvement 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 e51896c..03656b4 100644 --- a/framelesshelper_win32.cpp +++ b/framelesshelper_win32.cpp @@ -605,8 +605,7 @@ bool FramelessHelperWin::nativeEventFilter(const QByteArray &eventType, void *me const bool isRight = (localMouse.x() >= (ww - (bw * factor))); const bool fixedSize = Utilities::isWindowFixedSize(window); const auto getBorderValue = [fixedSize](int value) -> int { - // HTBORDER: non-resizable window border. - return fixedSize ? HTBORDER : value; + return fixedSize ? HTCLIENT : value; }; if (isTop) { if (isLeft) {