From 6f822b22bb728109966d0230dbf02a492679e6fd Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Mon, 11 May 2020 14:01:18 +0300 Subject: [PATCH] [effects/fade] Start the animation on only windowAdded or windowClosed windowShown and windowHidden are emitted when the window becomes visible and hidden, respectively. For example, that can be the case when the window has been minimized or unminimized. We have to start animations only when windowAdded or windowClosed has been emitted. --- effects/fade/package/contents/code/main.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/effects/fade/package/contents/code/main.js b/effects/fade/package/contents/code/main.js index f20616bcb1..89b0679129 100644 --- a/effects/fade/package/contents/code/main.js +++ b/effects/fade/package/contents/code/main.js @@ -97,9 +97,7 @@ function fadeOutHandler(w) { } } effects.windowAdded.connect(fadeInHandler); -effects.windowShown.connect(fadeInHandler); effects.windowClosed.connect(fadeOutHandler); -effects.windowHidden.connect(fadeOutHandler); effects.windowDataChanged.connect(function (window, role) { if (role == Effect.WindowAddedGrabRole) { if (effect.isGrabbed(window, Effect.WindowAddedGrabRole)) {