From 5f6a6cac6781b6000bab9dc8d6c5728d99435dfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Mon, 21 Dec 2009 21:04:18 +0000 Subject: [PATCH] Show minimized windows in desktop grid with present windows and fade them in/out during the start animation. BUG: 219595 svn path=/trunk/KDE/kdebase/workspace/; revision=1064812 --- effects/desktopgrid/desktopgrid.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/effects/desktopgrid/desktopgrid.cpp b/effects/desktopgrid/desktopgrid.cpp index 95987d0731..062e215192 100644 --- a/effects/desktopgrid/desktopgrid.cpp +++ b/effects/desktopgrid/desktopgrid.cpp @@ -233,6 +233,8 @@ void DesktopGridEffect::prePaintWindow( EffectWindow* w, WindowPrePaintData& dat if( w->isOnDesktop( paintingDesktop )) { w->enablePainting( EffectWindow::PAINT_DISABLED_BY_DESKTOP ); + if( w->isMinimized() && isUsingPresentWindows() ) + w->enablePainting( EffectWindow::PAINT_DISABLED_BY_MINIMIZE ); data.mask |= PAINT_WINDOW_TRANSFORMED; // Split windows at screen edges @@ -324,6 +326,10 @@ void DesktopGridEffect::paintWindow( EffectWindow* w, int mask, QRegion region, // fade out panels if present windows is used d.opacity *= ( 1.0 - timeline.value() ); } + if( isUsingPresentWindows() && w->isMinimized() ) + { + d.opacity *= timeline.value(); + } if( effects->compositingType() == XRenderCompositing ) { // More exact clipping as XRender displays the entire window instead of just the quad