From 988674c5cab26797b6ce77ac3df064e36070e7f3 Mon Sep 17 00:00:00 2001
From: Sine Striker <trueful@163.com>
Date: 周五, 08 12月 2023 01:55:36 +0800
Subject: [PATCH] Fix neglectful code

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

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

--
Gitblit v1.9.1