From d2f83ab8f792fdd0e7fa619e2015ca81e7a25508 Mon Sep 17 00:00:00 2001 From: Lucas Murray Date: Wed, 15 Oct 2008 08:23:52 +0000 Subject: [PATCH] Fix fading of minimized windows when deactivating the present windows effect. svn path=/trunk/KDE/kdebase/workspace/; revision=871588 --- effects/presentwindows.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/effects/presentwindows.cpp b/effects/presentwindows.cpp index 3360650bcf..7cd9ea1ba9 100644 --- a/effects/presentwindows.cpp +++ b/effects/presentwindows.cpp @@ -1143,9 +1143,9 @@ void PresentWindowsEffect::setActive( bool active ) { // TODO: w->isOnCurrentDesktop(); doesn't seem to be updated immediately if( m_highlightedWindow ) - m_windowData[w].visible = ( w->desktop() == m_highlightedWindow->desktop() || w->isOnAllDesktops() ); + m_windowData[w].visible = ( w->desktop() == m_highlightedWindow->desktop() || w->isOnAllDesktops() ) && !w->isMinimized(); else // Only called when cancelling the effect, so isOnCurrentDesktop() is fine - m_windowData[w].visible = w->isOnCurrentDesktop(); + m_windowData[w].visible = w->isOnCurrentDesktop() && !w->isMinimized(); } // Move all windows back to their original position