wasm: Don't add window border, title bar, etc, to child windows

Only top level windows should have window manager features,
to match other platforms.

Pick-to: 6.6
Change-Id: I7a0563ef34aeb430d0b1a16633a5626482ccd17d
Reviewed-by: Mikołaj Boc <Mikolaj.Boc@qt.io>
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
This commit is contained in:
Tor Arne Vestbø 2023-08-08 15:00:02 +02:00
parent 89209c8eca
commit 3c438c5d4c

View File

@ -606,7 +606,7 @@ bool QWasmWindow::hasFrame() const
bool QWasmWindow::hasBorder() const
{
return hasFrame() && !m_state.testFlag(Qt::WindowFullScreen) && !m_flags.testFlag(Qt::SubWindow)
&& !windowIsPopupType(m_flags);
&& !windowIsPopupType(m_flags) && !parent();
}
bool QWasmWindow::hasTitleBar() const