diff --git a/effects/highlightwindow/highlightwindow.cpp b/effects/highlightwindow/highlightwindow.cpp index 87f90b7064..0f1029e8d2 100644 --- a/effects/highlightwindow/highlightwindow.cpp +++ b/effects/highlightwindow/highlightwindow.cpp @@ -148,6 +148,8 @@ void HighlightWindowEffect::propertyNotify( EffectWindow* w, long a ) m_monitorWindow = w; bool found = false; int length = byteData.length() / sizeof( data[0] ); + foreach( EffectWindow* e, m_highlightedWindows ) + effects->setElevatedWindow( e, false ); m_highlightedWindows.clear(); for( int i=0; iisMinimized() ) + { m_highlightedWindows.append( foundWin ); + effects->setElevatedWindow( foundWin, true ); + } found = true; } if( !found )