From 3c7343fef04b941ae507b6c9256c4bb6277792b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Wed, 23 Jun 2010 16:47:08 +0000 Subject: [PATCH] We can blur the background behind panels in present windows. They won't move and without blurring it creates artefacts. BUG: 242561 FIXED-IN: 4.5.1 svn path=/trunk/KDE/kdebase/workspace/; revision=1141849 --- effects/presentwindows/presentwindows.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/effects/presentwindows/presentwindows.cpp b/effects/presentwindows/presentwindows.cpp index 61e0002b78..772f6c0a78 100644 --- a/effects/presentwindows/presentwindows.cpp +++ b/effects/presentwindows/presentwindows.cpp @@ -217,6 +217,13 @@ void PresentWindowsEffect::postPaintScreen() } m_windowData.clear(); + foreach( EffectWindow *w, effects->stackingOrder() ) + { + if( w->isDock() ) + { + w->setData( WindowForceBlurRole, QVariant( false ) ); + } + } effects->setActiveFullScreenEffect( NULL ); } @@ -1607,6 +1614,14 @@ void PresentWindowsEffect::setActive( bool active, bool closingTab ) setHighlightedWindow( effects->currentTabBoxWindow() ); else setHighlightedWindow( effects->activeWindow() ); + + foreach( EffectWindow *w, effects->stackingOrder() ) + { + if( w->isDock() ) + { + w->setData( WindowForceBlurRole, QVariant( true ) ); + } + } } else {