From 0a4c6076fe4202dc72d2b5bfbf0a41fa94671775 Mon Sep 17 00:00:00 2001
From: Sine Striker <trueful@163.com>
Date: 摹曛, 23 5月 2024 18:57:01 +0800
Subject: [PATCH] Update

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

diff --git a/src/core/contexts/win32windowcontext.cpp b/src/core/contexts/win32windowcontext.cpp
index 43d5cb6..07b835f 100644
--- a/src/core/contexts/win32windowcontext.cpp
+++ b/src/core/contexts/win32windowcontext.cpp
@@ -831,6 +831,12 @@
                        ? int(getWindowFrameBorderThickness(reinterpret_cast<HWND>(m_windowId)))
                        : 0;
         }
+
+        if (key == QStringLiteral("title-bar-height")) {
+            return m_windowId
+                       ? int(getTitleBarHeight(reinterpret_cast<HWND>(m_windowId)))
+                       : 0;
+        }
         return AbstractWindowContext::windowAttribute(key);
     }
 

--
Gitblit v1.9.1