diff --git a/tabbox/tabboxview.cpp b/tabbox/tabboxview.cpp index 2313751068..6f860e7269 100644 --- a/tabbox/tabboxview.cpp +++ b/tabbox/tabboxview.cpp @@ -41,6 +41,8 @@ along with this program. If not, see . #include #include #include +#include +#include namespace KWin { @@ -123,7 +125,17 @@ bool TabBoxView::event( QEvent* event ) void TabBoxView::resizeEvent(QResizeEvent* event) { m_frame->resizeFrame( event->size() ); - setMask( m_frame->mask() ); + if (Plasma::Theme::defaultTheme()->windowTranslucencyEnabled()) + { + // blur background + Plasma::WindowEffects::enableBlurBehind(winId(), true, m_frame->mask()); + Plasma::WindowEffects::overrideShadow(winId(), true); + } + else + { + // do not trim to mask with compositing enabled, otherwise shadows are cropped + setMask( m_frame->mask() ); + } QWidget::resizeEvent(event); }