From 7ff65323e5d2405110bcb1e0ca35ad939051700f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Morten=20S=C3=B8rvig?= Date: Fri, 6 May 2022 11:06:09 +0200 Subject: [PATCH] wasm: remove window from requestUpdate queue on removeWindow() Don't deliver update requests to windows which have been deleted or are not on screen. Change-Id: Ia2972e8dbef46eaf91a45a84962353917d436da6 Reviewed-by: Aleksandr Reviakin Reviewed-by: Lorn Potter Reviewed-by: David Skoland --- src/plugins/platforms/wasm/qwasmcompositor.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/platforms/wasm/qwasmcompositor.cpp b/src/plugins/platforms/wasm/qwasmcompositor.cpp index fa83f1908b..fa32b7ba03 100644 --- a/src/plugins/platforms/wasm/qwasmcompositor.cpp +++ b/src/plugins/platforms/wasm/qwasmcompositor.cpp @@ -238,6 +238,7 @@ void QWasmCompositor::removeWindow(QWasmWindow *window) m_windowStack.removeAll(window); m_compositedWindows.remove(window); + m_requestUpdateWindows.remove(window); if (!m_windowStack.isEmpty() && !QGuiApplication::focusWindow()) { auto lastWindow = m_windowStack.last();