SVN commit 1215517 by aseigo: update the borders when the svg signals us to M +3 -5 dialog.cpp --- branches/KDE/4.6/kdelibs/plasma/dialog.cpp #1215516:1215517 @@ -100,6 +100,7 @@ // when we aren't compositing q->setAttribute(Qt::WA_NoSystemBackground, !translucency); updateMask(); + q->update(); } void DialogPrivate::updateMask() @@ -386,11 +387,13 @@ : QWidget(parent, f | Qt::FramelessWindowHint), d(new DialogPrivate(this)) { + setMouseTracking(true); setAttribute(Qt::WA_TranslucentBackground); d->background = new FrameSvg(this); d->background->setImagePath("dialogs/background"); d->background->setEnabledBorders(FrameSvg::AllBorders); d->background->resizeFrame(size()); + connect(d->background, SIGNAL(repaintNeeded()), this, SLOT(themeChanged())); QPalette pal = palette(); pal.setColor(backgroundRole(), Qt::transparent); @@ -405,12 +408,7 @@ d->adjustSizeTimer->setSingleShot(true); connect(d->adjustSizeTimer, SIGNAL(timeout()), this, SLOT(delayedAdjustSize())); - connect(d->background, SIGNAL(repaintNeeded()), this, SLOT(update())); - - connect(Plasma::Theme::defaultTheme(), SIGNAL(themeChanged()), this, SLOT(themeChanged())); d->themeChanged(); - - setMouseTracking(true); } Dialog::~Dialog()