wasm: Only show resize border if direct parent window enables it

A top level window with a window frame will have the has-border class,
and hence a resize border, but child windows of that window shouldn't
have their own resize borders.

Ideally we wouldn't generate these non-client-area elements for child
windows, but changing that requires more work, as it involves creating
and destroying these elements on the fly if a window goes from being
a child window to a top level and vice versa.

Change-Id: I64ec27d87df952419284354b50420df8e48824d8
Reviewed-by: Piotr Wierciński <piotr.wiercinski@qt.io>
(cherry picked from commit 9322f80c3cde118aec803e6b2c86197b1b5dbb67)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Tor Arne Vestbø 2024-07-04 22:35:48 +02:00 committed by Qt Cherry-pick Bot
parent 7017dc6d37
commit 75f798129a

View File

@ -64,7 +64,7 @@ const char *Style = R"css(
.qt-window.no-resize > .resize-outline { display: none; }
.qt-window.has-border:not(.maximized):not(.no-resize) .resize-outline {
.qt-window.has-border:not(.maximized):not(.no-resize) > .resize-outline {
display: block;
}