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

List:       kde-commits
Subject:    KDE/kdelibs/plasma/private
From:       Aaron J. Seigo <aseigo () kde ! org>
Date:       2011-01-13 19:49:28
Message-ID: 20110113194928.3135EAC8B3 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1214252 by aseigo:

* test the prefix equiv at the right place
* prevent unecessary calls on setCustomGeometry by comparing the new and existing geom


 M  +9 -4      focusindicator.cpp  


--- trunk/KDE/kdelibs/plasma/private/focusindicator.cpp #1214251:1214252
@@ -85,6 +85,10 @@
 
 void FocusIndicator::setCustomGeometry(const QRectF &geometry)
 {
+    if (m_customGeometry == geometry) {
+        return;
+    }
+
     m_customGeometry = geometry;
     syncGeometry();
 }
@@ -102,14 +106,15 @@
         m_prefix.prepend(m_customPrefix);
     }
 
+    m_testPrefix = m_customPrefix % "hover";
+    if (m_prefix.isEmpty()) {
+        m_prefix = m_customPrefix % "shadow";
+    }
+
     if (m_prefix == was) {
         return;
     }
 
-    m_testPrefix = m_customPrefix % "hover";
-    if (m_prefix.isEmpty()) {
-        m_prefix = m_customPrefix % "shadow";
-    }
     syncGeometry();
     resizeEvent(0);
 }
[prev in list] [next in list] [prev in thread] [next in thread] 

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