diff --git a/private/focusindicator.cpp b/private/focusindicator.cpp index 1060465fb..55a0bc0e0 100644 --- a/private/focusindicator.cpp +++ b/private/focusindicator.cpp @@ -85,6 +85,10 @@ FocusIndicator::~FocusIndicator() void FocusIndicator::setCustomGeometry(const QRectF &geometry) { + if (m_customGeometry == geometry) { + return; + } + m_customGeometry = geometry; syncGeometry(); } @@ -102,14 +106,15 @@ void FocusIndicator::setCustomPrefix(const QString &prefix) m_prefix.prepend(m_customPrefix); } - if (m_prefix == was) { - return; - } - m_testPrefix = m_customPrefix % "hover"; if (m_prefix.isEmpty()) { m_prefix = m_customPrefix % "shadow"; } + + if (m_prefix == was) { + return; + } + syncGeometry(); resizeEvent(0); }