summaryrefslogtreecommitdiffstats
path: root/src/client
diff options
context:
space:
mode:
authorDavid Edmundson <davidedmundson@kde.org>2023-12-13 09:45:05 +0000
committerDavid Edmundson <davidedmundson@kde.org>2023-12-28 09:52:53 +0000
commit36098d436a83270e17ea36874470bf28f0ac94b7 (patch)
tree4c80b6532afa2803358a10064574fcc6ee25b740 /src/client
parent6e6853a88b9d1acc321d54f663a8a77b1b9f680d (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 Pick-to: 6.7 Change-Id: I7c203db18e34a8f81a39c504591f6b54df076da8 Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Diffstat (limited to 'src/client')
-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();