diff --git a/clients/oxygen/oxygenclient.cpp b/clients/oxygen/oxygenclient.cpp index eff46a8ccf..99c0f98208 100644 --- a/clients/oxygen/oxygenclient.cpp +++ b/clients/oxygen/oxygenclient.cpp @@ -1348,14 +1348,19 @@ namespace Oxygen { TileSet *tileSet( 0 ); - QColor background( backgroundPalette( widget(), palette ).window().color() ); ShadowCache::Key key( this->key() ); if( configuration().useOxygenShadows() && glowIsAnimated() && !isForcedActive() ) { + QColor background( backgroundPalette( widget(), palette ).window().color() ); tileSet = shadowCache().tileSet( background, key, glowIntensity() ); - } else tileSet = shadowCache().tileSet( background, key ); + } else { + + QColor background( backgroundColor( widget(), palette ) ); + tileSet = shadowCache().tileSet( background, key ); + + } if( !isMaximized() ) tileSet->render( frame.adjusted( 4, 4, -4, -4), &painter, TileSet::Ring); else if( isShade() ) tileSet->render( frame.adjusted( 0, 4, 0, -4), &painter, TileSet::Bottom);