Fixed problem with windows being to height to fit on screen. There position

is still calculated for optimal screen usage now. Formerly the window
was just placed top-left..

svn path=/trunk/kdebase/kwin/; revision=64956
This commit is contained in:
Thomas Zander 2000-09-24 09:20:31 +00:00
parent faed83eace
commit 2ff8d44d50

View file

@ -1290,7 +1290,7 @@ void Workspace::smartPlacement(Client* c){
//loop over possible positions
do {
//test if enough room in x and y directions
if ( y + ch > maxRect.bottom() )
if ( y + ch > maxRect.bottom() && ch <= maxRect.height() )
overlap = h_wrong; // this throws the algorithm to an exit
else if( x + cw > maxRect.right() )
overlap = w_wrong;