From f9f50b58636d85498c0ad0754413ad25532e3ce1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Mon, 7 Jul 2008 09:28:06 +0000 Subject: [PATCH] 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 --- effects/coverswitch.cpp | 2 +- effects/flipswitch.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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