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:
parent
faed83eace
commit
2ff8d44d50
1 changed files with 1 additions and 1 deletions
|
@ -1290,7 +1290,7 @@ void Workspace::smartPlacement(Client* c){
|
||||||
//loop over possible positions
|
//loop over possible positions
|
||||||
do {
|
do {
|
||||||
//test if enough room in x and y directions
|
//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
|
overlap = h_wrong; // this throws the algorithm to an exit
|
||||||
else if( x + cw > maxRect.right() )
|
else if( x + cw > maxRect.right() )
|
||||||
overlap = w_wrong;
|
overlap = w_wrong;
|
||||||
|
|
Loading…
Reference in a new issue