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 <aleksandr.reviakin@qt.io>
Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
Reviewed-by: David Skoland <david.skoland@qt.io>
bb10
Morten Sørvig 2022-05-06 11:06:09 +02:00
parent 83106badcd
commit 7ff65323e5
1 changed files with 1 additions and 0 deletions

View File

@ -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();