summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Edmundson <davidedmundson@kde.org>2023-12-13 09:45:05 +0000
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2023-12-28 10:41:32 +0000
commit052cf03333cd1919d01a7a37069773ad3afe2957 (patch)
treecdf8362d7edff3fd28f6c60b5ec81cc3910c6bd8
parent68587537efd851127e5aa10a37566e29c2b64b6a (diff)
client: Do not constrain clients to size hints
The behavior of constraining requests from the system to the client requested size does not appear to be in other backends. It was added to QWayland before xdg-shell/qt-shell existed with hints that can be supplied to the window manager. This is important as the specification states that maximized windows must follow the geometry requested and there is some movement towards this applying for all tiled states. Task-number: QTBUG-120035 Change-Id: I7c203db18e34a8f81a39c504591f6b54df076da8 Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io> (cherry picked from commit 36098d436a83270e17ea36874470bf28f0ac94b7) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--src/client/qwaylandwindow.cpp12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/client/qwaylandwindow.cpp b/src/client/qwaylandwindow.cpp
index 610cc9e50..a03878b57 100644
--- a/src/client/qwaylandwindow.cpp
+++ b/src/client/qwaylandwindow.cpp
@@ -398,17 +398,7 @@ QRect QWaylandWindow::defaultGeometry() const
void QWaylandWindow::setGeometry_helper(const QRect &rect)
{
- QSize minimum = windowMinimumSize();
- QSize maximum = windowMaximumSize();
- int width = windowGeometry().width();
- int height = windowGeometry().height();
- if (minimum.width() <= maximum.width()
- && minimum.height() <= maximum.height()) {
- width = qBound(minimum.width(), rect.width(), maximum.width());
- height = qBound(minimum.height(), rect.height(), maximum.height());
- }
-
- QPlatformWindow::setGeometry(QRect(rect.x(), rect.y(), width, height));
+ QPlatformWindow::setGeometry(rect);
if (mViewport)
updateViewport();