Commit 7ee36597 authored by Lucas Murray's avatar Lucas Murray

Elevate highlighted windows in the highlight window effect.

svn path=/trunk/KDE/kdebase/workspace/; revision=1064253
parent d93c4b6c
...@@ -148,6 +148,8 @@ void HighlightWindowEffect::propertyNotify( EffectWindow* w, long a ) ...@@ -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 ) ...@@ -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 )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment