[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.
This commit is contained in:
parent
df9e36ee68
commit
6f822b22bb
1 changed files with 0 additions and 2 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue