Avoid continious repaints in Present Windows effect

REVIEW: 104787
icc-effect-5.14.5
Thomas Lübking 2012-04-11 01:19:36 +02:00
parent 75b6a04732
commit c8320b0db7
1 changed files with 5 additions and 1 deletions

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