From 87d373e9cd57a4c5097d5b8ec4d095f139e13d49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Thu, 19 Aug 2010 12:08:33 +0000 Subject: [PATCH] off-by-one error when ensuring a window in the bottom-right corner doesn't go outside the workarea svn path=/trunk/KDE/kdebase/workspace/; revision=1165452 --- geometry.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/geometry.cpp b/geometry.cpp index b97f9887d5..c39baaaa82 100644 --- a/geometry.cpp +++ b/geometry.cpp @@ -876,9 +876,9 @@ void Client::keepInArea( QRect area, bool partial ) resizeWithChecks( qMin( area.width(), width()), qMin( area.height(), height())); } if ( geometry().right() > area.right() && width() < area.width() ) - move( area.right() - width(), y() ); + move( area.right() - width() + 1, y() ); if ( geometry().bottom() > area.bottom() && height() < area.height() ) - move( x(), area.bottom() - height() ); + move( x(), area.bottom() - height() + 1 ); if( !area.contains( geometry().topLeft() )) { int tx = x();