From a5941bd240cbb0e50d856c55f1c7c6b5edacfebb Mon Sep 17 00:00:00 2001 From: alex4401 Date: Wed, 25 Sep 2019 21:33:32 +0200 Subject: [PATCH] Remove instances of direct panel.actor access --- CoverflowAltTab@dmo60.de/switcher.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/CoverflowAltTab@dmo60.de/switcher.js b/CoverflowAltTab@dmo60.de/switcher.js index 30885d2..e4bd04c 100644 --- a/CoverflowAltTab@dmo60.de/switcher.js +++ b/CoverflowAltTab@dmo60.de/switcher.js @@ -117,9 +117,10 @@ Switcher.prototype = { let panels = this.getPanels(); panels.forEach(function(panel) { try { - panel.actor.set_reactive(false); + let panelActor = (panel instanceof Clutter.Actor) ? panel : panel.actor + panelActor.set_reactive(false); if (this._settings.hide_panel) { - Tweener.addTween(panel.actor, { + Tweener.addTween(panelActor, { opacity: 0, time: this._settings.animation_time, transition: TRANSITION_TYPE @@ -508,10 +509,11 @@ Switcher.prototype = { let panels = this.getPanels(); panels.forEach(function(panel) { try { - panel.actor.set_reactive(true); + let panelActor = (panel instanceof Clutter.Actor) ? panel : panel.actor + panelActor.set_reactive(true); if (this._settings.hide_panel) { - Tweener.removeTweens(panel.actor); - Tweener.addTween(panel.actor, { + Tweener.removeTweens(panelActor); + Tweener.addTween(panelActor, { opacity: 255, time: this._settings.animation_time, transition: TRANSITION_TYPE}