From d61db440e1c757a656ec2ab91f0c2f39ccd5d5f3 Mon Sep 17 00:00:00 2001 From: Yuhang Zhao <zhaoyuhang@rankyee.com> Date: ćšć, 28 12æ 2023 15:19:56 +0800 Subject: [PATCH] minor tweaks --- src/core/contexts/win32windowcontext.cpp | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/src/core/contexts/win32windowcontext.cpp b/src/core/contexts/win32windowcontext.cpp index 64050b5..a41d110 100644 --- a/src/core/contexts/win32windowcontext.cpp +++ b/src/core/contexts/win32windowcontext.cpp @@ -696,6 +696,10 @@ } else { ::AdjustWindowRectEx(&frame, style, FALSE, exStyle); } + frame.left = std::abs(frame.left); + frame.top = std::abs(frame.top); + frame.right = std::abs(frame.right); + frame.bottom = std::abs(frame.bottom); return QVariant::fromValue(rect2qrect(frame)); } -- Gitblit v1.9.1