From 7aabc22e0b6841a46eb449398e4e8910352008cc Mon Sep 17 00:00:00 2001
From: Sine Striker <trueful@163.com>
Date: 周六, 09 12月 2023 15:10:23 +0800
Subject: [PATCH] Fix windows custom margins key mistake

---
 src/core/corewindowagent_p.h |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/core/corewindowagent_p.h b/src/core/corewindowagent_p.h
index 6b1912d..7ff6825 100644
--- a/src/core/corewindowagent_p.h
+++ b/src/core/corewindowagent_p.h
@@ -16,11 +16,12 @@
 
         CoreWindowAgent *q_ptr; // no need to initialize
 
-        bool setup(const QObject *host, const WindowItemDelegate *delegate);
+        virtual AbstractWindowContext *createContext() const;
 
-        AbstractWindowContext *context;
+        bool setup(QObject *host, WindowItemDelegate *delegate);
 
-    private:
+        std::unique_ptr<AbstractWindowContext> context;
+
         Q_DISABLE_COPY_MOVE(CoreWindowAgentPrivate)
     };
 

--
Gitblit v1.9.1