From 270ffa55d584f40c823eb5178b69b9edc83d86ce Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Fri, 5 Mar 2010 22:31:04 +0000 Subject: [PATCH] unset the masks when they should and set overrideshadow on each window show svn path=/trunk/KDE/kdelibs/; revision=1099654 --- dialog.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dialog.cpp b/dialog.cpp index 9cc264f00..dadd405a9 100644 --- a/dialog.cpp +++ b/dialog.cpp @@ -109,9 +109,9 @@ void DialogPrivate::themeChanged() //kDebug() << leftWidth << topHeight << rightWidth << bottomHeight; if (Plasma::Theme::defaultTheme()->windowTranslucencyEnabled()) { - q->setMask(background->mask()); + q->clearMask(); } else { - q->setMask(QRect(QPoint(0, 0), q->size())); + q->setMask(background->mask()); } FrameSvg::EnabledBorders borders = FrameSvg::AllBorders; @@ -616,6 +616,7 @@ void Dialog::showEvent(QShowEvent * event) } emit dialogVisible(true); + WindowEffects::overrideShadow(winId(), true); } void Dialog::focusInEvent(QFocusEvent *event)