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
This commit is contained in:
Martin Gräßlin 2009-11-15 16:35:36 +00:00
parent 2f525b4c34
commit 3b8151a6ce

View file

@ -4,6 +4,7 @@
Copyright (C) 2007 Lubos Lunak <l.lunak@kde.org>
Copyright (C) 2008 Lucas Murray <lmurray@undefinedfire.com>
Copyright (C) 2009 Martin Gräßlin <kde@martin-graesslin.com>
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();