From c8320b0db73b9e09a69fb96bf96d4f97fba61442 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=BCbking?= Date: Wed, 11 Apr 2012 01:19:36 +0200 Subject: [PATCH] Avoid continious repaints in Present Windows effect REVIEW: 104787 --- effects/presentwindows/presentwindows.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/effects/presentwindows/presentwindows.cpp b/effects/presentwindows/presentwindows.cpp index 15c76c5427..bcede22ccc 100755 --- a/effects/presentwindows/presentwindows.cpp +++ b/effects/presentwindows/presentwindows.cpp @@ -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(); }