Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 4ecbacff authored by David Edmundson's avatar David Edmundson

[effects/fadedesktop] Port to explicit animate API

Summary: No behavioural changes

Test Plan:
Set a slow animation speed
Changed desktop

Reviewers: #kwin, zzag

Reviewed By: #kwin, zzag

Subscribers: zzag, kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D15473
parent 9ebb7978
......@@ -40,9 +40,24 @@ effects['desktopChanged(int,int)'].connect(function(oldDesktop, newDesktop) {
continue;
}
if (w.desktop == oldDesktop) {
effect.animate(w, Effect.Opacity, duration, 0.0);
animate({
window: w,
duration: duration,
animations: [{
type: Effect.Opacity,
to: 0.0
}]
});
} else {
effect.animate(w, Effect.Opacity, duration, w.opacity, 0.0);
animate({
window: w,
duration: duration,
animations: [{
type: Effect.Opacity,
to: w.opacity,
from: 0.0
}]
});
}
}
});
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