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
icc-effect-5.14.5
Hugo Pereira Da Costa 2009-09-17 15:24:44 +00:00
parent a26a08830d
commit d58e7b7812
1 changed files with 10 additions and 1 deletions

View File

@ -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));