Place in MaximizeArea, patch by Andreas Noever.

BUG: 166116


svn path=/trunk/KDE/kdebase/workspace/; revision=842490
This commit is contained in:
Luboš Luňák 2008-08-05 12:03:49 +00:00
parent 45c3b4dc0c
commit c1727e6740

View file

@ -145,7 +145,7 @@ void ThumbnailAsideEffect::arrange()
mwidth = qMax( mwidth, d.window->width()); mwidth = qMax( mwidth, d.window->width());
pos[ d.index ] = d.window->height(); pos[ d.index ] = d.window->height();
} }
QRect area = effects->clientArea( WorkArea, screen, effects->currentDesktop()); QRect area = effects->clientArea( MaximizeArea, screen, effects->currentDesktop());
double scale = area.height() / double( height ); double scale = area.height() / double( height );
scale = qMin( scale, maxwidth / double( mwidth )); // don't be wider than maxwidth pixels scale = qMin( scale, maxwidth / double( mwidth )); // don't be wider than maxwidth pixels
int add = 0; int add = 0;