Elevate highlighted windows in the highlight window effect.

svn path=/trunk/KDE/kdebase/workspace/; revision=1064253
This commit is contained in:
Lucas Murray 2009-12-20 12:52:59 +00:00
parent d93c4b6c33
commit 7ee3659755

View file

@ -148,6 +148,8 @@ void HighlightWindowEffect::propertyNotify( EffectWindow* w, long a )
m_monitorWindow = w; m_monitorWindow = w;
bool found = false; bool found = false;
int length = byteData.length() / sizeof( data[0] ); int length = byteData.length() / sizeof( data[0] );
foreach( EffectWindow* e, m_highlightedWindows )
effects->setElevatedWindow( e, false );
m_highlightedWindows.clear(); m_highlightedWindows.clear();
for( int i=0; i<length; i++ ) for( int i=0; i<length; i++ )
{ {
@ -158,7 +160,10 @@ void HighlightWindowEffect::propertyNotify( EffectWindow* w, long a )
continue; continue;
} }
if( !foundWin->isMinimized() ) if( !foundWin->isMinimized() )
{
m_highlightedWindows.append( foundWin ); m_highlightedWindows.append( foundWin );
effects->setElevatedWindow( foundWin, true );
}
found = true; found = true;
} }
if( !found ) if( !found )