From ba573c60edea0216a7c3733e5d207731ebe16039 Mon Sep 17 00:00:00 2001 From: Hugo Pereira Da Costa Date: Tue, 1 May 2012 17:29:18 +0200 Subject: [PATCH] Check that widget style supports "SH_ArgbDndWindow" to decide whether or not to draw a shadow around ItemTag drag-and-drop icon. --- clients/oxygen/oxygenclient.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/clients/oxygen/oxygenclient.cpp b/clients/oxygen/oxygenclient.cpp index 9c9e9fe1ed..c46e756ee0 100644 --- a/clients/oxygen/oxygenclient.cpp +++ b/clients/oxygen/oxygenclient.cpp @@ -37,6 +37,7 @@ #include #include #include +#include #include #include @@ -1702,7 +1703,10 @@ namespace Oxygen // adjust geometry to include shadow size const int shadowSize( shadowCache().shadowSize() ); - const bool drawShadow( compositingActive() && shadowSize > 0 ); + const bool drawShadow( + compositingActive() && + KStyle::customStyleHint( "SH_ArgbDndWindow", widget() ) && + shadowSize > 0 ); if( drawShadow ) { geometry.adjust( -shadowSize, -shadowSize, shadowSize, shadowSize ); }