Commit 32877533 authored by Thomas Lübking's avatar Thomas Lübking
Browse files

catch maximized windows in ::keepInArea

BUG: 317068
FIXED-IN: 4.10.2
parent 8af61be9
......@@ -807,9 +807,9 @@ void Client::keepInArea(QRect area, bool partial)
if (area.width() < width() || area.height() < height())
resizeWithChecks(qMin(area.width(), width()), qMin(area.height(), height()));
}
if (geometry().right() > area.right() && width() < area.width())
if (geometry().right() > area.right() && width() <= area.width())
move(area.right() - width() + 1, y());
if (geometry().bottom() > area.bottom() && height() < area.height())
if (geometry().bottom() > area.bottom() && height() <= area.height())
move(x(), area.bottom() - height() + 1);
if (!area.contains(geometry().topLeft())) {
int tx = x();
......
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