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 {