From d1c27ba9a89bd155c18aa2b7be1d77c1787143cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Sun, 12 Apr 2009 16:35:22 +0000 Subject: [PATCH] Show windows from other desktops in boxswitch in the same way as minimized windows. svn path=/trunk/KDE/kdebase/workspace/; revision=952826 --- effects/boxswitch/boxswitch.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/effects/boxswitch/boxswitch.cpp b/effects/boxswitch/boxswitch.cpp index 5cb4312d9a..8fc7eed8e7 100644 --- a/effects/boxswitch/boxswitch.cpp +++ b/effects/boxswitch/boxswitch.cpp @@ -87,7 +87,7 @@ void BoxSwitchEffect::prePaintWindow( EffectWindow* w, WindowPrePaintData& data, { if( w != selected_window ) data.setTranslucent(); - w->enablePainting( EffectWindow::PAINT_DISABLED_BY_MINIMIZE ); + w->enablePainting( EffectWindow::PAINT_DISABLED_BY_MINIMIZE | EffectWindow::PAINT_DISABLED_BY_DESKTOP ); } } else @@ -213,7 +213,7 @@ void BoxSwitchEffect::paintWindow( EffectWindow* w, int mask, QRegion region, Wi { if( windows.contains( w ) && w != selected_window ) { - if( w->isMinimized() ) + if( w->isMinimized() || !w->isOnCurrentDesktop() ) // TODO: When deactivating minimized windows are not painted at all data.opacity *= activeTimeLine.value() * bg_opacity; else