From c1bd7885cb274dffca2c2fa054dca6230765e3d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=BCbking?= Date: Wed, 20 Mar 2013 20:19:35 +0100 Subject: [PATCH] catch maximized windows in ::keepInArea BUG: 317068 FIXED-IN: 4.10.2 --- geometry.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/geometry.cpp b/geometry.cpp index a0ed82eda9..75df2baf42 100644 --- a/geometry.cpp +++ b/geometry.cpp @@ -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();