[effects/fadedesktop] Fade to the correct opacity

Summary:
An opacity animation calls multiplyOpacity not setOpacity, therefore we
want to always fade between 0 and 1, not up to the window opacity.

Reviewers: #kwin, zzag

Reviewed By: #kwin, zzag

Subscribers: kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D15476
This commit is contained in:
David Edmundson 2018-09-14 10:09:32 +02:00
parent 4ecbacff77
commit 93b3ace067

View file

@ -54,7 +54,7 @@ effects['desktopChanged(int,int)'].connect(function(oldDesktop, newDesktop) {
duration: duration,
animations: [{
type: Effect.Opacity,
to: w.opacity,
to: 1.0,
from: 0.0
}]
});