Commit df614e21 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

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
parent 2e453c31
......@@ -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.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment