From 0586c98f90866e4bc9f0dfe73aefb0a07c56697e Mon Sep 17 00:00:00 2001
From: Sine Striker <trueful@163.com>
Date: 周二, 12 12月 2023 15:44:14 +0800
Subject: [PATCH] Add win10 border handler

---
 src/core/contexts/abstractwindowcontext_p.h |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/src/core/contexts/abstractwindowcontext_p.h b/src/core/contexts/abstractwindowcontext_p.h
index 3c04073..275caa9 100644
--- a/src/core/contexts/abstractwindowcontext_p.h
+++ b/src/core/contexts/abstractwindowcontext_p.h
@@ -46,9 +46,7 @@
         enum WindowContextHook {
             CentralizeHook = 1,
             ShowSystemMenuHook,
-            NeedsDrawBordersHook,
-            DrawBordersHook,
-            QueryBorderThicknessHook
+            DefaultColorsHook,
         };
         virtual void virtual_hook(int id, void *data);
 
@@ -56,9 +54,9 @@
         virtual bool setupHost() = 0;
 
     protected:
-        QObject *m_host;
+        QObject *m_host{};
         std::unique_ptr<WindowItemDelegate> m_delegate;
-        QWindow *m_windowHandle;
+        QWindow *m_windowHandle{};
 
         QSet<const QObject *> m_hitTestVisibleItems;
         QList<QRect> m_hitTestVisibleRects;

--
Gitblit v1.9.1