[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/KDE/4.5/kdebase/workspace/kwin
From:       Luboš Luňák <l.lunak () kde ! org>
Date:       2010-08-19 12:09:33
Message-ID: 20100819120933.6F3CCAC857 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1165454 by lunakl:

off-by-one error when ensuring a window in the bottom-right corner
doesn't go outside the workarea



 M  +2 -2      geometry.cpp  


--- branches/KDE/4.5/kdebase/workspace/kwin/geometry.cpp #1165453:1165454
@@ -876,9 +876,9 @@
             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();
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic