From 3a5e5aea06e87710e24db0d7439ab81e3e3d301f Mon Sep 17 00:00:00 2001
From: Zhao Yuhang <2546789017@qq.com>
Date: 周六, 09 12月 2023 17:24:04 +0800
Subject: [PATCH] fix system menu

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

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

--
Gitblit v1.9.1