diff --git a/src/plugins/platforms/wasm/qwasmwindow.cpp b/src/plugins/platforms/wasm/qwasmwindow.cpp index eb6b1cd2e3c..a9be3909599 100644 --- a/src/plugins/platforms/wasm/qwasmwindow.cpp +++ b/src/plugins/platforms/wasm/qwasmwindow.cpp @@ -761,6 +761,10 @@ void QWasmWindow::setMask(const QRegion ®ion) void QWasmWindow::setParent(const QPlatformWindow *) { + // The window flags depend on whether we are a + // child window or not, so update them here. + setWindowFlags(window()->flags()); + commitParent(parentNode()); }