diff --git a/private/focusindicator.cpp b/private/focusindicator.cpp index b38898d9f..26a54b125 100644 --- a/private/focusindicator.cpp +++ b/private/focusindicator.cpp @@ -47,6 +47,7 @@ FocusIndicator::FocusIndicator(QGraphicsWidget *parent) parent->installEventFilter(this); connect(Plasma::Theme::defaultTheme(), SIGNAL(themeChanged()), SLOT(syncGeometry())); + syncGeometry(); } FocusIndicator::~FocusIndicator() @@ -100,7 +101,7 @@ void FocusIndicator::syncGeometry() if (!m_customGeometry.isNull()) { geom = m_customGeometry; } else { - geom = boundingRect(); + geom = m_parent->boundingRect(); } qreal left, top, right, bottom;