Delete some redundant checks

Summary: sizeForClientSize checks the minimum and the maximum size.

Reviewers: #kwin

Subscribers: kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D24473
This commit is contained in:
Vlad Zahorodnii 2019-10-07 18:41:58 +03:00
parent 2e453c31dc
commit df614e218d

View file

@ -320,13 +320,6 @@ bool X11Client::manage(xcb_window_t w, bool isMapped)
}
}
if (m_geometryHints.hasMaxSize())
geom.setSize(geom.size().boundedTo(
rules()->checkMaxSize(m_geometryHints.maxSize())));
if (m_geometryHints.hasMinSize())
geom.setSize(geom.size().expandedTo(
rules()->checkMinSize(m_geometryHints.minSize())));
if (isMovable() && (geom.x() > area.right() || geom.y() > area.bottom()))
placementDone = false; // Weird, do not trust.