From dea2e71d4cf2cfaabe0b4e83fb4e67f304fce47e Mon Sep 17 00:00:00 2001 From: Rivo Laks Date: Wed, 21 Nov 2007 15:20:47 +0000 Subject: [PATCH] Paint minimized windows as well when the effect is active svn path=/trunk/KDE/kdebase/workspace/; revision=739688 --- effects/boxswitch.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/effects/boxswitch.cpp b/effects/boxswitch.cpp index 7d68cf078b..2928818220 100644 --- a/effects/boxswitch.cpp +++ b/effects/boxswitch.cpp @@ -56,8 +56,12 @@ void BoxSwitchEffect::prePaintWindow( EffectWindow* w, WindowPrePaintData& data, { if( mMode == TabBoxWindowsMode ) { - if( windows.contains( w ) && w != selected_window ) - data.setTranslucent(); + if( windows.contains( w )) + { + if( w != selected_window ) + data.setTranslucent(); + w->enablePainting( EffectWindow::PAINT_DISABLED_BY_MINIMIZE ); + } } else { @@ -308,8 +312,7 @@ void BoxSwitchEffect::setActive() { foreach( EffectWindow* w, windows.keys()) { - if( w != selected_window ) - w->addRepaintFull(); + w->addRepaintFull(); } } }