Commit 1e62fe99 authored by David Edmundson's avatar David Edmundson
Browse files

Remove superfluous area check

If area.contains(geometry.topLeft()) is false this does nothing anyway
parent 41160789
Pipeline #190975 passed with stage
in 30 minutes and 38 seconds
......@@ -1523,13 +1523,11 @@ void Window::keepInArea(QRect area, bool partial)
geometry.moveBottom(area.bottom());
}
if (!area.contains(geometry.topLeft())) {
if (geometry.left() < area.left()) {
geometry.moveLeft(area.left());
}
if (geometry.top() < area.top()) {
geometry.moveTop(area.top());
}
if (geometry.left() < area.left()) {
geometry.moveLeft(area.left());
}
if (geometry.top() < area.top()) {
geometry.moveTop(area.top());
}
if (moveResizeGeometry().topLeft() != geometry.topLeft()) {
......
Supports Markdown
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