From 4bc13d629328f9fab62ce231adb6d3455d03e3c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Tue, 17 May 2005 08:38:14 +0000 Subject: [PATCH] Oops, fix #80545. svn path=/trunk/KDE/kdebase/kwin/; revision=414893 --- geometry.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/geometry.cpp b/geometry.cpp index f496d89730..3c29480331 100644 --- a/geometry.cpp +++ b/geometry.cpp @@ -967,7 +967,7 @@ void Client::checkDirection( int new_diff, int old_diff, QRect& rect, const QRec else // old_diff > 0 // was in right third, keep distance from right edge rect.moveRight( area.right() - ( old_diff - 1 )); } - if( isResizable()) + else if( isResizable()) { if( old_diff < 0 ) rect.setLeft( area.left() + ( -old_diff - 1 ) ); @@ -978,7 +978,7 @@ void Client::checkDirection( int new_diff, int old_diff, QRect& rect, const QRec rect.setWidth( area.width()); if( isMovable()) { - if( rect.left() > area.left()) + if( rect.left() < area.left()) rect.moveLeft( area.left()); else if( rect.right() > area.right()) rect.moveRight( area.right());