summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIlya Fedin <fedin-ilja2010@ya.ru>2023-05-15 10:29:46 +0400
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2023-05-15 08:05:00 +0000
commita97583de6147a2a081eb6a21f8c1d94acfe9f6ca (patch)
tree5c003bec2e58f0b0e61566795e450c1dc0e86784
parent31e79a74b69d4c2c0d029b92908bd6b1cda51a86 (diff)
Client: fix a typo in minimum window size handling
Amends 42128ec10e2365b5235a80ebc0bb429402b8f95f Change-Id: I3919b913aa7b09f9d0863344d72e9f6e14a8634a Reviewed-by: David Edmundson <davidedmundson@kde.org> (cherry picked from commit 2887b351ed70e1151cb88755ecc63fa99c12b0f1) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--src/plugins/shellintegration/xdg-shell/qwaylandxdgshell.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/shellintegration/xdg-shell/qwaylandxdgshell.cpp b/src/plugins/shellintegration/xdg-shell/qwaylandxdgshell.cpp
index 8e41e5a76..86aca92cf 100644
--- a/src/plugins/shellintegration/xdg-shell/qwaylandxdgshell.cpp
+++ b/src/plugins/shellintegration/xdg-shell/qwaylandxdgshell.cpp
@@ -424,7 +424,7 @@ void QWaylandXdgSurface::setSizeHints()
maxHeight = 0;
// It will not change min/max sizes if invalid.
- if (minWidth > maxHeight || minHeight > maxHeight)
+ if (minWidth > maxWidth || minHeight > maxHeight)
return;
m_toplevel->set_min_size(minWidth, minHeight);