diff --git a/js/ui/altTab.js b/js/ui/altTab.js index d0c3713cf..885727158 100644 --- a/js/ui/altTab.js +++ b/js/ui/altTab.js @@ -262,7 +262,7 @@ var AppSwitcherPopup = new Lang.Class({ _windowActivated(thumbnailList, n) { let appIcon = this._items[this._selectedIndex]; Main.activateWindow(appIcon.cachedWindows[n]); - this.destroy(); + this.fadeAndDestroy(); }, _windowEntered(thumbnailList, n) { diff --git a/js/ui/status/keyboard.js b/js/ui/status/keyboard.js index a17e9c43b..b0cc9bb00 100644 --- a/js/ui/status/keyboard.js +++ b/js/ui/status/keyboard.js @@ -414,7 +414,7 @@ var InputSourceManager = new Lang.Class({ let popup = new InputSourcePopup(this._mruSources, this._keybindingAction, this._keybindingActionBackward); if (!popup.show(binding.is_reversed(), binding.get_name(), binding.get_mask())) - popup.destroy(); + popup.fadeAndDestroy(); }, _keyboardOptionsChanged() { diff --git a/js/ui/switcherPopup.js b/js/ui/switcherPopup.js index d645f1df9..9c392f9be 100644 --- a/js/ui/switcherPopup.js +++ b/js/ui/switcherPopup.js @@ -195,7 +195,7 @@ var SwitcherPopup = new Lang.Class({ // Note: pressing one of the below keys will destroy the popup only if // that key is not used by the active popup's keyboard shortcut if (keysym == Clutter.Escape || keysym == Clutter.Tab) - this.destroy(); + this.fadeAndDestroy(); return Clutter.EVENT_STOP; }, @@ -215,7 +215,7 @@ var SwitcherPopup = new Lang.Class({ }, _clickedOutside(actor, event) { - this.destroy(); + this.fadeAndDestroy(); return Clutter.EVENT_PROPAGATE; }, @@ -255,7 +255,7 @@ var SwitcherPopup = new Lang.Class({ let newIndex = Math.min(n, this._items.length - 1); this._select(newIndex); } else { - this.actor.destroy(); + this.fadeAndDestroy(); } }, @@ -298,7 +298,7 @@ var SwitcherPopup = new Lang.Class({ } }, - destroy() { + fadeAndDestroy() { this._popModal(); if (this.actor.visible) { Tweener.addTween(this.actor, @@ -314,7 +314,7 @@ var SwitcherPopup = new Lang.Class({ }, _finish(timestamp) { - this.destroy(); + this.fadeAndDestroy(); }, _onDestroy() {