mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
altSwitcher: Fix error when all alternatives are disabled
While we do consider the case that we don't have a child to show for the visibility, we are still trying to move the click action unconditionally. https://gitlab.gnome.org/GNOME/gnome-shell/issues/783
This commit is contained in:
parent
74bb9e6249
commit
e77463b875
1 changed files with 4 additions and 1 deletions
|
|
@ -58,6 +58,9 @@ var AltSwitcher = new Lang.Class({
|
|||
childToShow = this._standard;
|
||||
} else if (this._alternate.visible) {
|
||||
childToShow = this._alternate;
|
||||
} else {
|
||||
this.actor.hide();
|
||||
return;
|
||||
}
|
||||
|
||||
let childShown = this.actor.get_child();
|
||||
|
|
@ -79,7 +82,7 @@ var AltSwitcher = new Lang.Class({
|
|||
global.sync_pointer();
|
||||
}
|
||||
|
||||
this.actor.visible = (childToShow != null);
|
||||
this.actor.show();
|
||||
},
|
||||
|
||||
_onDestroy() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue