From edcb20da4138cbe3d892083bcbdb9e8d6d7747af Mon Sep 17 00:00:00 2001 From: Jan-Erik Rediger Date: Sun, 31 Jan 2021 17:57:26 +0100 Subject: [PATCH] Set actor variable for use after `if` (#368) --- liveAltTab.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/liveAltTab.js b/liveAltTab.js index e39ba17..b69a9bf 100644 --- a/liveAltTab.js +++ b/liveAltTab.js @@ -165,8 +165,8 @@ class LiveAltTab extends AltTab.WindowSwitcherPopup { let index = this.was_accepted ? this._selectedIndex : 0 let to = this._switcherList.windows[index]; Tiling.focus_handler(to); + let actor = to.get_compositor_private(); if (this.was_accepted) { - let actor = to.get_compositor_private(); actor.x = this.clone.x; actor.y = this.clone.y; }