[gnome-shell/wip/fmuellner/ease-actors: 1035/1052] switcherPopup: Avoid unnecessary animation
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/fmuellner/ease-actors: 1035/1052] switcherPopup: Avoid unnecessary animation
- Date: Tue, 6 Aug 2019 02:16:59 +0000 (UTC)
commit 14935d9e3db46ed984279ee313e222e6be792b12
Author: Florian Müllner <fmuellner gnome org>
Date: Sat Jul 21 05:20:35 2018 +0200
switcherPopup: Avoid unnecessary animation
Ever since commit 28bb0c1fb2, the popup's actual visibility has been
controlled by its :opacity property, not :visible.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/654
js/ui/switcherPopup.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/js/ui/switcherPopup.js b/js/ui/switcherPopup.js
index 9b8cdd617..ec5bbaae9 100644
--- a/js/ui/switcherPopup.js
+++ b/js/ui/switcherPopup.js
@@ -283,7 +283,7 @@ var SwitcherPopup = GObject.registerClass({
fadeAndDestroy() {
this._popModal();
- if (this.visible) {
+ if (this.opacity > 0) {
Tweener.addTween(this,
{ opacity: 0,
time: POPUP_FADE_OUT_TIME / 1000,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]