From e0b59294fc9e9dc8198b8c504860353b6bec0124 Mon Sep 17 00:00:00 2001
From: Sine Striker <trueful@163.com>
Date: 周二, 07 5月 2024 21:14:12 +0800
Subject: [PATCH] Implement Windows SysMenu handling

---
 src/core/contexts/abstractwindowcontext.cpp |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/core/contexts/abstractwindowcontext.cpp b/src/core/contexts/abstractwindowcontext.cpp
index 2665ac4..1c11015 100644
--- a/src/core/contexts/abstractwindowcontext.cpp
+++ b/src/core/contexts/abstractwindowcontext.cpp
@@ -260,6 +260,12 @@
                 m_windowAttributes.insert(it.key(), it.value());
             }
         }
+
+        // Send to shared dispatchers
+        if (oldWinId != m_windowId) {
+            QEvent e(QEvent::WinIdChange);
+            sharedDispatch(m_host, &e);
+        }
     }
 
     QVariant AbstractWindowContext::windowAttribute(const QString &key) const {

--
Gitblit v1.9.1