Multiply opacity values, do not set them directly. This prevented the windows to be displayed it the opacity value had been set manually.

BUG: 165876

svn path=/trunk/KDE/kdebase/workspace/; revision=829023
icc-effect-5.14.5
Martin Gräßlin 2008-07-07 09:28:06 +00:00
parent 03404aa336
commit f9f50b5863
2 changed files with 2 additions and 2 deletions

View File

@ -686,7 +686,7 @@ void CoverSwitchEffect::paintWindowCover( EffectWindow* w, QRect windowRect, boo
{
WindowPaintData data( w );
data.opacity = opacity;
data.opacity *= opacity;
QRect thumbnail = infiniteRegion();
setPositionTransformations( data,

View File

@ -603,7 +603,7 @@ void FlipSwitchEffect::paintWindowFlip( EffectWindow* w, bool draw, float opacit
QRect( x, y, w->geometry().width(), w->geometry().height() ),
Qt::KeepAspectRatio );
data.opacity = opacity;
data.opacity *= opacity;
thumbnail = infiniteRegion();
// if paintWindow() is used the window behind the initial selected window is not painted on the stack,
// but painted when it is selected