Avoid continious repaints in Present Windows effect
REVIEW: 104787
This commit is contained in:
parent
75b6a04732
commit
c8320b0db7
1 changed files with 5 additions and 1 deletions
|
@ -254,7 +254,11 @@ void PresentWindowsEffect::postPaintScreen()
|
|||
for (i = m_windowData.constBegin(); i != m_windowData.constEnd(); ++i) {
|
||||
if (i.value().opacity > 0.0 && i.value().opacity < 1.0)
|
||||
i.key()->addRepaintFull();
|
||||
if (i.value().highlight > 0.0 && i.value().highlight < 1.0)
|
||||
if (i.key()->isDesktop() && !m_motionManager.isManaging(i.key())) {
|
||||
if (i.value().highlight != 0.3)
|
||||
i.key()->addRepaintFull();
|
||||
}
|
||||
else if (i.value().highlight > 0.0 && i.value().highlight < 1.0)
|
||||
i.key()->addRepaintFull();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue