From 6576ff1d212c69812592a1a797e7c670982d723f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Sun, 30 Nov 2008 19:16:13 +0000 Subject: [PATCH] Also show opaque windows when opacity is set to 100%. BUG: 173214 svn path=/trunk/KDE/kdebase/workspace/; revision=890977 --- effects/cube.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/effects/cube.cpp b/effects/cube.cpp index 21daa5cb31..e68deebc1c 100644 --- a/effects/cube.cpp +++ b/effects/cube.cpp @@ -1239,7 +1239,13 @@ void CubeEffect::paintWindow( EffectWindow* w, int mask, QRegion region, WindowP } } if( !slide || (slide && !w->isDesktop()) || slideOpacity ) + { + // HACK set opacity to 0.99 in case of fully opaque to ensure that windows are painted in correct sequence + // bug #173214 + if( opacity > 0.99f ) + opacity = 0.99f; data.opacity *= opacity; + } if( w->isOnDesktop(painting_desktop) && w->x() < rect.x() ) {