Minor improvement
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
This commit is contained in:
parent
d12198a7bc
commit
fca63dbf54
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue