From e70c953a599a9dfb0d43bdea1772eb47b2d46ec6 Mon Sep 17 00:00:00 2001 From: Lorn Potter Date: Mon, 18 Apr 2022 16:31:59 +1000 Subject: [PATCH] wasm: fix initial window paint event MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We were requesting to activate the window too soon, when the window was still in the initial size of 600x600, in which case, the paint event was not getting called. This would require the user to have to click the window in order to see it. Removal of this does not seem to effect showing of tooltips, which it was added initially. Change-Id: I3efa86be99a3d9e1d9eda87b7537fff1e96e6774 Fixes: QTBUG-102005 Pick-to: 6.3 Reviewed-by: Aleksandr Reviakin Reviewed-by: Morten Johan Sørvig Reviewed-by: David Skoland --- src/plugins/platforms/wasm/qwasmcompositor.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/plugins/platforms/wasm/qwasmcompositor.cpp b/src/plugins/platforms/wasm/qwasmcompositor.cpp index bfcb1a9fe58..df0939df6cc 100644 --- a/src/plugins/platforms/wasm/qwasmcompositor.cpp +++ b/src/plugins/platforms/wasm/qwasmcompositor.cpp @@ -205,9 +205,6 @@ void QWasmCompositor::addWindow(QWasmWindow *window, QWasmWindow *parentWindow) else m_compositedWindows[parentWindow].childWindows.append(window); - if (!QGuiApplication::focusWindow()) { - window->requestActivateWindow(); - } notifyTopWindowChanged(window); }