Avoid continious repaints in Present Windows effect

REVIEW: 104787
This commit is contained in:
Thomas Lübking 2012-04-11 01:19:36 +02:00
parent 75b6a04732
commit c8320b0db7

View file

@ -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();
}