From 04a7f3c922e106f7a42c3fd2d4caa796ceb0d3a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Wed, 23 Mar 2016 13:16:22 +0100 Subject: [PATCH] [kstyle] Only create Wayland shadows for top-level widgets Summary: We don't want the shadow on sub-surfaces. Reviewers: #plasma Differential Revision: https://phabricator.kde.org/D1206 --- kstyle/breezeshadowhelper.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kstyle/breezeshadowhelper.cpp b/kstyle/breezeshadowhelper.cpp index 2dc702b0..873bfe94 100644 --- a/kstyle/breezeshadowhelper.cpp +++ b/kstyle/breezeshadowhelper.cpp @@ -437,6 +437,7 @@ namespace Breeze bool ShadowHelper::installWaylandShadows( QWidget* widget ) { #if BREEZE_HAVE_KWAYLAND + if( widget->windowHandle()->parent() ) return false; if( !_shadowManager || !_shmPool ) return false; if( !_shadowTiles.isValid() ) return false; @@ -532,6 +533,7 @@ namespace Breeze void ShadowHelper::uninstallWaylandShadows( QWidget* widget ) const { #if BREEZE_HAVE_KWAYLAND + if( widget->windowHandle()->parent() ) return; if( !_shadowManager ) return; using namespace KWayland::Client;