From 54bf5f1af69b030f772d4f81a715d52f5abd581b Mon Sep 17 00:00:00 2001 From: Vlad Zagorodniy Date: Thu, 13 Dec 2018 18:07:45 +0200 Subject: [PATCH] [libkwineffects] Don't mark a painted window as transformed twice Summary: WindowPrePaintData::setTransformed sets PAINT_WINDOW_TRANSFORMED, so `data.mask |= PAINT_WINDOW_TRANSFORMED;` is redundant. Test Plan: Minimized a window, haven't noticed visual glitches. Reviewers: #kwin, davidedmundson, graesslin Reviewed By: #kwin, davidedmundson, graesslin Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D17565 --- libkwineffects/kwinanimationeffect.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/libkwineffects/kwinanimationeffect.cpp b/libkwineffects/kwinanimationeffect.cpp index b370486f68..97b77171dc 100644 --- a/libkwineffects/kwinanimationeffect.cpp +++ b/libkwineffects/kwinanimationeffect.cpp @@ -591,7 +591,6 @@ void AnimationEffect::prePaintWindow( EffectWindow* w, WindowPrePaintData& data, data.setTranslucent(); else if (!(anim->attribute == Brightness || anim->attribute == Saturation)) { data.setTransformed(); - data.mask |= PAINT_WINDOW_TRANSFORMED; if (anim->attribute == Clip) clipWindow(w, *anim, data.quads); }