add synthetic repaint after crossfade finished

prevents glitches after crossfading translucent window

REVIEW: 111888
This commit is contained in:
Thomas Lübking 2013-07-03 21:29:16 +02:00
parent fbac18a635
commit b92ebe02aa

View file

@ -284,6 +284,7 @@ void AnimationEffect::prePaintScreen( ScreenPrePaintData& data, int time )
AniData *aData = &(*anim); AniData *aData = &(*anim);
if (aData->attribute == KWin::AnimationEffect::CrossFadePrevious) { if (aData->attribute == KWin::AnimationEffect::CrossFadePrevious) {
oldW->unreferencePreviousWindowPixmap(); oldW->unreferencePreviousWindowPixmap();
effects->addRepaint(oldW->expandedGeometry());
} }
animationEnded(oldW, anim->attribute, anim->meta); animationEnded(oldW, anim->attribute, anim->meta);
// NOTICE animationEnded is an external call and might have called "::animate" // NOTICE animationEnded is an external call and might have called "::animate"