From c3abe87f4cc0d2f0736f81caf2d0c6e4b1014b83 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Wed, 12 Feb 2020 12:40:32 +0200 Subject: [PATCH] Document AbstractClient::minSize() and AbstractClient::maxSize() Summary: Clarify that AbstractClient::minSize() and AbstractClient::maxSize() specify the minimum and the maximum client size. Reviewers: #kwin, davidedmundson Reviewed By: #kwin, davidedmundson Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D26829 --- abstract_client.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/abstract_client.cpp b/abstract_client.cpp index a180e3b7f6..d24efc4e48 100644 --- a/abstract_client.cpp +++ b/abstract_client.cpp @@ -719,11 +719,17 @@ void AbstractClient::keepInArea(QRect area, bool partial) move(tx, ty); } +/** + * Returns the maximum client size, not the maximum frame size. + */ QSize AbstractClient::maxSize() const { return rules()->checkMaxSize(QSize(INT_MAX, INT_MAX)); } +/** + * Returns the minimum client size, not the minimum frame size. + */ QSize AbstractClient::minSize() const { return rules()->checkMinSize(QSize(0, 0));