From d6dd4ae24a995c1c95bba0ac9c6a70fb778c9374 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Wed, 6 Jan 2010 16:00:53 +0000 Subject: [PATCH] use the overrideMask window effect svn path=/trunk/KDE/kdelibs/; revision=1070728 --- dialog.cpp | 3 ++- windoweffects.cpp | 2 +- windoweffects.h | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/dialog.cpp b/dialog.cpp index 77dde2f74..c7f0ef191 100644 --- a/dialog.cpp +++ b/dialog.cpp @@ -289,6 +289,7 @@ Dialog::Dialog(QWidget *parent, Qt::WindowFlags f) QPalette pal = palette(); pal.setColor(backgroundRole(), Qt::transparent); setPalette(pal); + WindowEffects::overrideShadow(winId(), true); d->adjustViewTimer = new QTimer(this); d->adjustViewTimer->setSingleShot(true); @@ -438,7 +439,7 @@ void Dialog::resizeEvent(QResizeEvent *e) d->background->resizeFrame(e->size()); if (Plasma::Theme::defaultTheme()->windowTranslucencyEnabled()) { - setMask(d->background->mask()); + clearMask(); } else { setMask(QRect(QPoint(0, 0), size())); } diff --git a/windoweffects.cpp b/windoweffects.cpp index f1e6f0f73..7529c826b 100644 --- a/windoweffects.cpp +++ b/windoweffects.cpp @@ -279,7 +279,7 @@ void highlightWindows(WId controller, const QList &ids) #endif } -void shadowOverride(WId window, bool override) +void overrideShadow(WId window, bool override) { #ifdef Q_WS_X11 Display *dpy = QX11Info::display(); diff --git a/windoweffects.h b/windoweffects.h index fe0ba92bd..311a8c6b9 100644 --- a/windoweffects.h +++ b/windoweffects.h @@ -24,7 +24,7 @@ #include -/** @headerfile plasma/windoweffect.h */ +/** @headerfile plasma/windoweffect.h */ namespace Plasma {