From 7aebe273da3444164edd3b893775268bedccdfa3 Mon Sep 17 00:00:00 2001 From: Sine Striker <trueful@163.com> Date: 周六, 27 4月 2024 21:42:51 +0800 Subject: [PATCH] Merge branch 'main' of github.com:stdware/qwindowkit --- 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