explicitly trigger minimal repaint on property change, otherwise broken when switching windows
This commit is contained in:
parent
025a841e99
commit
3c7bd4a5dd
1 changed files with 3 additions and 0 deletions
|
@ -245,6 +245,7 @@ void HighlightWindowEffect::prepareHighlighting()
|
||||||
foreach( EffectWindow *w, effects->stackingOrder() )
|
foreach( EffectWindow *w, effects->stackingOrder() )
|
||||||
if( !m_windowOpacity.contains( w )) // Just in case we are still finishing from last time
|
if( !m_windowOpacity.contains( w )) // Just in case we are still finishing from last time
|
||||||
m_windowOpacity[w] = isInitiallyHidden( w ) ? 0.0 : 1.0;
|
m_windowOpacity[w] = isInitiallyHidden( w ) ? 0.0 : 1.0;
|
||||||
|
m_highlightedWindows.at(0)->addRepaintFull();
|
||||||
}
|
}
|
||||||
|
|
||||||
void HighlightWindowEffect::finishHighlighting()
|
void HighlightWindowEffect::finishHighlighting()
|
||||||
|
@ -252,6 +253,8 @@ void HighlightWindowEffect::finishHighlighting()
|
||||||
m_finishing = true;
|
m_finishing = true;
|
||||||
m_monitorWindow = NULL;
|
m_monitorWindow = NULL;
|
||||||
m_highlightedWindows.clear();
|
m_highlightedWindows.clear();
|
||||||
|
if (!m_windowOpacity.isEmpty())
|
||||||
|
m_windowOpacity.constBegin().key()->addRepaintFull();
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
Loading…
Reference in a new issue