Blame SOURCES/0001-altSwitcher-Fix-error-when-all-alternatives-are-disa.patch

c7fac9
From 8f66d508bad63412f61d2162bb05224ee1637ab1 Mon Sep 17 00:00:00 2001
c7fac9
From: =?UTF-8?q?Florian=20M=C3=BCllner?= <fmuellner@gnome.org>
c7fac9
Date: Fri, 16 Nov 2018 11:39:08 +0100
c7fac9
Subject: [PATCH] altSwitcher: Fix error when all alternatives are disabled
c7fac9
c7fac9
While we do consider the case that we don't have a child to show for the
c7fac9
visibility, we are still trying to move the click action unconditionally.
c7fac9
c7fac9
https://gitlab.gnome.org/GNOME/gnome-shell/issues/783
c7fac9
---
c7fac9
 js/ui/status/system.js | 5 ++++-
c7fac9
 1 file changed, 4 insertions(+), 1 deletion(-)
c7fac9
c7fac9
diff --git a/js/ui/status/system.js b/js/ui/status/system.js
c7fac9
index 68a0b4b5b..cd6f3d8b0 100644
c7fac9
--- a/js/ui/status/system.js
c7fac9
+++ b/js/ui/status/system.js
c7fac9
@@ -58,6 +58,9 @@ var AltSwitcher = new Lang.Class({
c7fac9
             childToShow = this._standard;
c7fac9
         } else if (this._alternate.visible) {
c7fac9
             childToShow = this._alternate;
c7fac9
+        } else {
c7fac9
+            this.actor.hide();
c7fac9
+            return;
c7fac9
         }
c7fac9
 
c7fac9
         let childShown = this.actor.get_child();
c7fac9
@@ -79,7 +82,7 @@ var AltSwitcher = new Lang.Class({
c7fac9
             global.sync_pointer();
c7fac9
         }
c7fac9
 
c7fac9
-        this.actor.visible = (childToShow != null);
c7fac9
+        this.actor.show();
c7fac9
     },
c7fac9
 
c7fac9
     _onDestroy() {
c7fac9
-- 
c7fac9
2.20.1
c7fac9