summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/wasm/qwasmcssstyle.cpp
diff options
context:
space:
mode:
authorTor Arne Vestbø <[email protected]>2024-07-04 22:35:48 +0200
committerTor Arne Vestbø <[email protected]>2024-08-09 00:16:35 +0200
commit9322f80c3cde118aec803e6b2c86197b1b5dbb67 (patch)
treefe03f4e0756e08a67ff15c64f196dce74b53c46a /src/plugins/platforms/wasm/qwasmcssstyle.cpp
parentf637769c6b6d834cc6b70afcfe4f66e93a03656b (diff)
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. Pick-to: 6.8 Change-Id: I64ec27d87df952419284354b50420df8e48824d8 Reviewed-by: Piotr Wierciński <[email protected]>
Diffstat (limited to 'src/plugins/platforms/wasm/qwasmcssstyle.cpp')
-rw-r--r--src/plugins/platforms/wasm/qwasmcssstyle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/platforms/wasm/qwasmcssstyle.cpp b/src/plugins/platforms/wasm/qwasmcssstyle.cpp
index af9250e9261..99983dcc8ed 100644
--- a/src/plugins/platforms/wasm/qwasmcssstyle.cpp
+++ b/src/plugins/platforms/wasm/qwasmcssstyle.cpp
@@ -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;
}