From 38e309aec5b0d20852e711c76adc2792e23814e8 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Mon, 7 Sep 2009 11:24:35 +0000 Subject: [PATCH] fix the configure overlay appearance - we want the contentsrect, not the rect svn path=/trunk/KDE/kdelibs/; revision=1020851 --- applet.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/applet.cpp b/applet.cpp index 5cace9d89..509efa57f 100644 --- a/applet.cpp +++ b/applet.cpp @@ -2693,8 +2693,8 @@ void AppletOverlayWidget::paint(QPainter *painter, QPainterPath backgroundShape; if (!applet || applet->backgroundHints() & Applet::StandardBackground) { //FIXME: a resize here is nasty, but perhaps still better than an eventfilter just for that.. - if (parentWidget()->size() != size()) { - resize(parentWidget()->size()); + if (parentWidget()->contentsRect().size() != size()) { + resize(parentWidget()->contentsRect().size()); } backgroundShape = PaintUtils::roundedRectangle(contentsRect(), 5); } else {