From b92ebe02aa49c162518b0a6ebd2481d79a1d3843 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=BCbking?= Date: Wed, 3 Jul 2013 21:29:16 +0200 Subject: [PATCH] add synthetic repaint after crossfade finished prevents glitches after crossfading translucent window REVIEW: 111888 --- libkwineffects/kwinanimationeffect.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libkwineffects/kwinanimationeffect.cpp b/libkwineffects/kwinanimationeffect.cpp index 7b0e780403..5c114af7d2 100644 --- a/libkwineffects/kwinanimationeffect.cpp +++ b/libkwineffects/kwinanimationeffect.cpp @@ -284,6 +284,7 @@ void AnimationEffect::prePaintScreen( ScreenPrePaintData& data, int time ) AniData *aData = &(*anim); if (aData->attribute == KWin::AnimationEffect::CrossFadePrevious) { oldW->unreferencePreviousWindowPixmap(); + effects->addRepaint(oldW->expandedGeometry()); } animationEnded(oldW, anim->attribute, anim->meta); // NOTICE animationEnded is an external call and might have called "::animate"