From ed950edc24a674a5855c777a65a27261964d8876 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Mon, 19 Oct 2009 22:19:04 +0000 Subject: [PATCH] correctly sync with parent geometry svn path=/trunk/KDE/kdelibs/; revision=1037755 --- private/focusindicator.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;