From 3b8151a6ced1a93408d5f557242e85df9afee795 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Sun, 15 Nov 2009 16:35:36 +0000 Subject: [PATCH] Fade out panels when using present windows in desktop grid and adding myself to the copyright section svn path=/trunk/KDE/kdebase/workspace/; revision=1049653 --- effects/desktopgrid/desktopgrid.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/effects/desktopgrid/desktopgrid.cpp b/effects/desktopgrid/desktopgrid.cpp index 702b7c01c2..3f73972f27 100644 --- a/effects/desktopgrid/desktopgrid.cpp +++ b/effects/desktopgrid/desktopgrid.cpp @@ -4,6 +4,7 @@ Copyright (C) 2007 Lubos Lunak Copyright (C) 2008 Lucas Murray +Copyright (C) 2009 Martin Gräßlin This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -318,6 +319,12 @@ void DesktopGridEffect::paintWindow( EffectWindow* w, int mask, QRegion region, d.xTranslate += qRound( newPos.x() - w->x() ); d.yTranslate += qRound( newPos.y() - w->y() ); + if( isUsingPresentWindows() && w->isDock() ) + { + // fade out panels if present windows is used + d.opacity *= ( 1.0 - timeline.value() ); + } + if( effects->compositingType() == XRenderCompositing ) { // More exact clipping as XRender displays the entire window instead of just the quad QPointF screenPosF = scalePos( screenGeom.topLeft(), paintingDesktop ).toPoint();