From d61db440e1c757a656ec2ab91f0c2f39ccd5d5f3 Mon Sep 17 00:00:00 2001
From: Yuhang Zhao <zhaoyuhang@rankyee.com>
Date: 摹曛, 28 12月 2023 15:19:56 +0800
Subject: [PATCH] minor tweaks

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

diff --git a/src/core/contexts/cocoawindowcontext_p.h b/src/core/contexts/cocoawindowcontext_p.h
index 0bbf661..67c97db 100644
--- a/src/core/contexts/cocoawindowcontext_p.h
+++ b/src/core/contexts/cocoawindowcontext_p.h
@@ -24,12 +24,14 @@
         void virtual_hook(int id, void *data) override;
 
     protected:
-        void winIdChanged(QWindow *oldWindow, bool isDestroyed) override;
+        void winIdChanged() override;
+        bool windowAttributeChanged(const QString &key, const QVariant &attribute,
+                                    const QVariant &oldAttribute) override;
 
     protected:
         WId windowId = 0;
 
-        std::unique_ptr<QObject> cocoaWindowEventFilter;
+        std::unique_ptr<SharedEventFilter> cocoaWindowEventFilter;
     };
 
 }

--
Gitblit v1.9.1