diff --git a/src/plugins/platforms/wasm/qwasmwindow.cpp b/src/plugins/platforms/wasm/qwasmwindow.cpp index 524853b769..66c7593d14 100644 --- a/src/plugins/platforms/wasm/qwasmwindow.cpp +++ b/src/plugins/platforms/wasm/qwasmwindow.cpp @@ -742,6 +742,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()); }