secure m_highlightedWindows access when triggering
explicit repaint in highlight effect forward port of 891a0a2a3272186c2c7a93f7a332e04809e3d4d4
This commit is contained in:
parent
18125ce37f
commit
fcf68cfd69
1 changed files with 2 additions and 1 deletions
|
@ -240,7 +240,8 @@ 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();
|
if (!m_highlightedWindows.isEmpty())
|
||||||
|
m_highlightedWindows.at(0)->addRepaintFull();
|
||||||
}
|
}
|
||||||
|
|
||||||
void HighlightWindowEffect::finishHighlighting()
|
void HighlightWindowEffect::finishHighlighting()
|
||||||
|
|
Loading…
Reference in a new issue