From a12bb8782bd02305466a29101a4c54d6ba9c6bfe Mon Sep 17 00:00:00 2001
From: Sine Striker <trueful@163.com>
Date: 摹曛, 28 12月 2023 16:03:06 +0800
Subject: [PATCH] minor tweaks

---
 src/core/contexts/win32windowcontext.cpp |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/src/core/contexts/win32windowcontext.cpp b/src/core/contexts/win32windowcontext.cpp
index a41d110..e4707dc 100644
--- a/src/core/contexts/win32windowcontext.cpp
+++ b/src/core/contexts/win32windowcontext.cpp
@@ -680,7 +680,7 @@
     }
 
     QVariant Win32WindowContext::windowAttribute(const QString &key) const {
-        if (key == QStringLiteral("title-bar-rect")) {
+        if (key == QStringLiteral("window-rect")) {
             if (!m_windowHandle)
                 return {};
 
@@ -696,10 +696,6 @@
             } 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