Compute scale factor properly.
svn path=/branches/work/kwin_composite/; revision=654285
This commit is contained in:
parent
76cb5de294
commit
b30180ca26
1 changed files with 1 additions and 1 deletions
|
@ -530,7 +530,7 @@ void PresentWindowsEffect::calculateWindowTransformationsClosest(EffectWindowLis
|
|||
slotwidth, slotheight );
|
||||
geom.adjust( 10, 10, -10, -10 ); // borders
|
||||
(*it).area = geom;
|
||||
(*it).scale = geom.width() / float( it.key()->width());
|
||||
(*it).scale = qMin( geom.width() / float( it.key()->width()), geom.height() / float( it.key()->height()));
|
||||
(*it).hover = 0;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue