[effects/blend] Fix opacity value of old window

We animated from 1.0 to 0.0, however this does not take into account
that a previous effect may also have adjusted the opacity.

We should multiply accordingly.
This commit is contained in:
David Edmundson 2022-08-02 11:37:55 +01:00
parent 3b26936019
commit 49d80162c5

View file

@ -76,7 +76,7 @@ void BlendChanges::apply(EffectWindow *window, int mask, WindowPaintData &data,
Q_UNUSED(window)
Q_UNUSED(mask)
Q_UNUSED(quads)
data.setOpacity(1.0 - m_timeline.value());
data.setOpacity((1.0 - m_timeline.value()) * data.opacity());
}
bool BlendChanges::isActive() const