[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:
parent
3b26936019
commit
49d80162c5
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue