Commit 54bf5f1a authored by Vlad Zahorodnii's avatar Vlad Zahorodnii

[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
parent 17358796
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment