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
This commit is contained in:
parent
03404aa336
commit
f9f50b5863
2 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue