diff --git a/effects/coverswitch.cpp b/effects/coverswitch.cpp index 331ca67279..3177e449b4 100644 --- a/effects/coverswitch.cpp +++ b/effects/coverswitch.cpp @@ -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, diff --git a/effects/flipswitch.cpp b/effects/flipswitch.cpp index 04f0c2a1f4..beba7dbcd2 100644 --- a/effects/flipswitch.cpp +++ b/effects/flipswitch.cpp @@ -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