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:
parent
2e453c31dc
commit
df614e218d
1 changed files with 0 additions and 7 deletions
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in a new issue