From 626753571d31b218641fcca1a40852bbd15ed8a2 Mon Sep 17 00:00:00 2001 From: Waldo Bastian Date: Wed, 10 May 2000 04:36:50 +0000 Subject: [PATCH] WABA: Fixed a bug which wasted 0.2% of my effective screen size >:-) svn path=/trunk/kdebase/kwin/; revision=49060 --- workspace.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/workspace.cpp b/workspace.cpp index 908f477465..81fbafb28f 100644 --- a/workspace.cpp +++ b/workspace.cpp @@ -1962,9 +1962,9 @@ QPoint Workspace::adjustClientPosition( Client* c, QPoint pos ) QRect maxRect = clientArea(); int xmin = maxRect.left(); - int xmax = maxRect.right(); //desk size + int xmax = maxRect.right()+1; //desk size int ymin = maxRect.top(); - int ymax = maxRect.bottom(); + int ymax = maxRect.bottom()+1; int cx, cy, rx, ry, cw, ch; //these don't change int nx, ny; //buffers @@ -1985,7 +1985,7 @@ QPoint Workspace::adjustClientPosition( Client* c, QPoint pos ) nx = xmin; } if ((QABS(xmax-rx) < snap) && (QABS(xmax-rx) < deltaX)) { - deltaX = abs(xmax-rx); + deltaX = QABS(xmax-rx); nx = xmax - cw; } @@ -2022,7 +2022,7 @@ QPoint Workspace::adjustClientPosition( Client* c, QPoint pos ) } if ( ( QABS( rx - lx ) < snap ) && ( QABS( rx - lx ) < deltaX ) ) { - deltaX = abs(rx - lx); + deltaX = QABS(rx - lx); nx = lx - cw; } }