wasm: fix initial window paint event
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 <aleksandr.reviakin@qt.io> Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io> Reviewed-by: David Skoland <david.skoland@qt.io>
This commit is contained in:
parent
f9e4402ffe
commit
e70c953a59
@ -205,9 +205,6 @@ void QWasmCompositor::addWindow(QWasmWindow *window, QWasmWindow *parentWindow)
|
|||||||
else
|
else
|
||||||
m_compositedWindows[parentWindow].childWindows.append(window);
|
m_compositedWindows[parentWindow].childWindows.append(window);
|
||||||
|
|
||||||
if (!QGuiApplication::focusWindow()) {
|
|
||||||
window->requestActivateWindow();
|
|
||||||
}
|
|
||||||
notifyTopWindowChanged(window);
|
notifyTopWindowChanged(window);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user