Don't cause painting in unrelated parts.
svn path=/trunk/KDE/kdebase/workspace/; revision=728509
This commit is contained in:
parent
b33ce330ca
commit
2922ef272e
1 changed files with 4 additions and 1 deletions
|
@ -13,6 +13,7 @@ License. See the file "COPYING" for the exact licensing terms.
|
|||
#include <kwinglutils.h>
|
||||
|
||||
#include <kconfiggroup.h>
|
||||
#include <kdebug.h>
|
||||
#include <KStandardDirs>
|
||||
|
||||
namespace KWin
|
||||
|
@ -46,7 +47,9 @@ void ShadowEffect::prePaintWindow( EffectWindow* w, WindowPrePaintData& data, in
|
|||
if( useShadow( w ))
|
||||
{
|
||||
data.mask |= PAINT_WINDOW_TRANSLUCENT;
|
||||
data.paint |= QRegion( shadowRectangle( ( QRegion( w->geometry()) & data.paint ).boundingRect() ));
|
||||
QRect r = ( QRegion( w->geometry()) & data.paint ).boundingRect();
|
||||
if( !r.isEmpty())
|
||||
data.paint |= shadowRectangle( r );
|
||||
}
|
||||
effects->prePaintWindow( w, data, time );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue