Set actor variable for use after if (#368)

This commit is contained in:
Jan-Erik Rediger
2021-01-31 17:57:26 +01:00
committed by GitHub
parent aa8177d7e8
commit edcb20da41
+1 -1
View File
@@ -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;
}