From ee3afd86464ce0a8aecd3bcf9df94848137400cc Mon Sep 17 00:00:00 2001 From: Charles Gagnon Date: Wed, 16 Jan 2019 18:41:55 -0500 Subject: [PATCH] Fix entering overview animation using super key --- panel.js | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/panel.js b/panel.js index c84d2aa..7b2d36e 100644 --- a/panel.js +++ b/panel.js @@ -91,7 +91,7 @@ var dtpPanelWrapper = new Lang.Class({ reactive: false, opacity: 0 }); - + Main.overview._overview.add_actor(this._myPanelGhost) this._adjustForOverview(); this._setPanelPosition(); @@ -193,11 +193,6 @@ var dtpPanelWrapper = new Lang.Class({ Main.overview.dashIconSize = this.taskbar.iconSize; }) ], - [ - Main.overview, - 'hidden', - () => this._removePanelGhost() - ], [ Main.overview, [ @@ -255,8 +250,7 @@ var dtpPanelWrapper = new Lang.Class({ disable: function () { this.panelStyle.disable(); - - this._removePanelGhost(); + Main.overview._overview.remove_actor(this._myPanelGhost); this._signalsHandler.destroy(); this.container.remove_child(this.taskbar.actor); @@ -377,18 +371,8 @@ var dtpPanelWrapper = new Lang.Class({ let isShown = !isOverview || (isOverview && isFocusedMonitor); this.panelBox[isShown ? 'show' : 'hide'](); - - if (isOverview && isFocusedMonitor) { - Main.overview._overview.add_actor(this._myPanelGhost); - } }, - _removePanelGhost: function() { - if (this._myPanelGhost.get_parent()) { - Main.overview._overview.remove_actor(this._myPanelGhost); - } - }, - _allocate: function(actor, box, flags) { let panelAllocWidth = box.x2 - box.x1; let panelAllocHeight = box.y2 - box.y1;