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