[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
This commit is contained in:
Vlad Zagorodniy 2018-12-13 18:07:45 +02:00
parent 17358796ab
commit 54bf5f1af6

View file

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