From 56c4ef0a85abb92a64bb90d86526f2218835e282 Mon Sep 17 00:00:00 2001 From: Yuhang Zhao <zhaoyuhang@rankyee.com> Date: 周一, 18 12月 2023 14:21:39 +0800 Subject: [PATCH] optimize mac context a bit --- src/core/contexts/qtwindowcontext_p.h | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/src/core/contexts/qtwindowcontext_p.h b/src/core/contexts/qtwindowcontext_p.h index ff62b4a..dc19f0a 100644 --- a/src/core/contexts/qtwindowcontext_p.h +++ b/src/core/contexts/qtwindowcontext_p.h @@ -15,7 +15,10 @@ void virtual_hook(int id, void *data) override; protected: - bool winIdChanged() override; + void winIdChanged(QWindow *oldWindow) override; + + protected: + std::unique_ptr<QObject> qtWindowEventFilter; }; } -- Gitblit v1.9.1