Minor improvement

Signed-off-by: Yuhang Zhao <2546789017@qq.com>
This commit is contained in:
Yuhang Zhao 2021-04-28 11:39:51 +08:00
parent d12198a7bc
commit fca63dbf54
1 changed files with 1 additions and 2 deletions

View File

@ -605,8 +605,7 @@ bool FramelessHelperWin::nativeEventFilter(const QByteArray &eventType, void *me
const bool isRight = (localMouse.x() >= (ww - (bw * factor))); const bool isRight = (localMouse.x() >= (ww - (bw * factor)));
const bool fixedSize = Utilities::isWindowFixedSize(window); const bool fixedSize = Utilities::isWindowFixedSize(window);
const auto getBorderValue = [fixedSize](int value) -> int { const auto getBorderValue = [fixedSize](int value) -> int {
// HTBORDER: non-resizable window border. return fixedSize ? HTCLIENT : value;
return fixedSize ? HTBORDER : value;
}; };
if (isTop) { if (isTop) {
if (isLeft) { if (isLeft) {