Merge branch 'KDE/4.11'

This commit is contained in:
Thomas Lübking 2013-09-26 19:44:35 +02:00
commit 22f0e62cb8

View file

@ -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
}]
});
}
});