diff --git a/effects/fade/package/contents/code/main.js b/effects/fade/package/contents/code/main.js index 5631e6c3e0..74e39f1a35 100644 --- a/effects/fade/package/contents/code/main.js +++ b/effects/fade/package/contents/code/main.js @@ -34,7 +34,7 @@ function isLoginWindow(w) { var fadeInTime, fadeOutTime, fadeWindows; function loadConfig() { fadeInTime = animationTime(effect.readConfig("FadeInTime", 150)); - fadeOutTime = animationTime(effect.readConfig("FadeOutTime", 600)); + fadeOutTime = animationTime(effect.readConfig("FadeOutTime", 150)) * 4; fadeWindows = effect.readConfig("FadeWindows", true); } loadConfig(); @@ -48,6 +48,14 @@ effects.windowAdded.connect(function(w) { }); effects.windowClosed.connect(function(w) { if (fadeWindows && isFadeWindow(w)) { - effect.animate(w, Effect.Opacity, fadeOutTime, 0.0, "", QEasingCurve.OutQuart); + animate({ + window: w, + duration: fadeOutTime, + animations: [{ + type: Effect.Opacity, + curve: QEasingCurve.OutQuart, + to: 0.0 + }] + }); } });