From kde-commits Thu Jan 13 19:49:28 2011 From: =?utf-8?q?Aaron=20J=2E=20Seigo?= Date: Thu, 13 Jan 2011 19:49:28 +0000 To: kde-commits Subject: KDE/kdelibs/plasma/private Message-Id: <20110113194928.3135EAC8B3 () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=129494824215365 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); }