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
master
Vlad Zahorodnii 2020-02-12 12:44:10 +02:00
parent 2b120e07ca
commit b8f1c09cfd
2 changed files with 12 additions and 0 deletions

View File

@ -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 << "\'";

View File

@ -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;