From d58e7b78122a69ad8855a3d9f037885223efecfd Mon Sep 17 00:00:00 2001 From: Hugo Pereira Da Costa Date: Thu, 17 Sep 2009 15:24:44 +0000 Subject: [PATCH] fixed (again) issue with shadow and mask for 'no-border' shaded windows, to cope with commit r1023615 svn path=/trunk/KDE/kdebase/workspace/; revision=1024918 --- clients/oxygen/oxygenclient.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/clients/oxygen/oxygenclient.cpp b/clients/oxygen/oxygenclient.cpp index 0eaaa7961a..24b9ae6409 100644 --- a/clients/oxygen/oxygenclient.cpp +++ b/clients/oxygen/oxygenclient.cpp @@ -553,6 +553,15 @@ namespace Oxygen void OxygenClient::shadeChange( void ) { if( hasSizeGrip() ) sizeGrip().setVisible( !( isShade() || isMaximized() ) ); + + // in border none mode, need to reinitialze shadowTiles because + // bottom corner rounding is changed + if( compositingActive() && configuration().frameBorder() == OxygenConfiguration::BorderNone ) + { + inactiveShadowConfiguration_ = OxygenShadowConfiguration( QPalette::Active ); + activeShadowConfiguration_ = OxygenShadowConfiguration( QPalette::Active ); + } + KCommonDecorationUnstable::shadeChange(); } @@ -1077,7 +1086,7 @@ namespace Oxygen } p.setBrush( Qt::NoBrush ); - if( configuration().frameBorder() == OxygenConfiguration::BorderNone ) + if( configuration().frameBorder() == OxygenConfiguration::BorderNone && !isShade() ) { p.setClipRect( QRectF( 0, 0, 2*size, size ) ); } p.setPen(QPen(lg, 0.8));