From b8f1c09cfd7cb8960ba26834966af7139336c8e7 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Wed, 12 Feb 2020 12:44:10 +0200 Subject: [PATCH] Honor minimum and maximum size of InternalClient Reviewers: #kwin, davidedmundson Reviewed By: #kwin, davidedmundson Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D26831 --- internal_client.cpp | 10 ++++++++++ internal_client.h | 2 ++ 2 files changed, 12 insertions(+) diff --git a/internal_client.cpp b/internal_client.cpp index 97830d7ac4..30f7303fea 100644 --- a/internal_client.cpp +++ b/internal_client.cpp @@ -144,6 +144,16 @@ QSize InternalClient::clientSize() const return m_clientSize; } +QSize InternalClient::minSize() const +{ + return m_internalWindow->minimumSize(); +} + +QSize InternalClient::maxSize() const +{ + return m_internalWindow->maximumSize(); +} + void InternalClient::debug(QDebug &stream) const { stream.nospace() << "\'InternalClient:" << m_internalWindow << "\'"; diff --git a/internal_client.h b/internal_client.h index 5766af714d..cd1e8f6d27 100644 --- a/internal_client.h +++ b/internal_client.h @@ -43,6 +43,8 @@ public: QString captionSuffix() const override; QPoint clientContentPos() const override; QSize clientSize() const override; + QSize minSize() const override; + QSize maxSize() const override; void debug(QDebug &stream) const override; QRect transparentRect() const override; NET::WindowType windowType(bool direct = false, int supported_types = 0) const override;