[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kde-workspace] kwin/effects/presentwindows: Avoid continious repaints in Present Windows effect
From:       Thomas_Lübking <thomas.luebking () gmail ! com>
Date:       2012-04-30 20:38:03
Message-ID: 20120430203803.6FC29A60D1 () git ! kde ! org
[Download RAW message or body]

Git commit f9ccf1f62f9590964a3741151c2ce10ed432929b by Thomas Lübking.
Committed on 11/04/2012 at 01:19.
Pushed by luebking into branch 'master'.

Avoid continious repaints in Present Windows effect

REVIEW: 104787

M  +5    -1    kwin/effects/presentwindows/presentwindows.cpp

http://commits.kde.org/kde-workspace/f9ccf1f62f9590964a3741151c2ce10ed432929b

diff --git a/kwin/effects/presentwindows/presentwindows.cpp \
b/kwin/effects/presentwindows/presentwindows.cpp index 15c76c5..bcede22 100755
--- a/kwin/effects/presentwindows/presentwindows.cpp
+++ b/kwin/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();
     }
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic