diff --git a/liveAltTab.js b/liveAltTab.js index 7b28056..872b177 100644 --- a/liveAltTab.js +++ b/liveAltTab.js @@ -38,8 +38,6 @@ class LiveAltTab extends AltTab.WindowSwitcherPopup { } _initialSelection(backward, actionName) { - this._block = Main.wm._blockAnimations; - Main.wm._blockAnimations = true; this.space = Tiling.spaces.selectedSpace; this.space.startAnimate(); @@ -140,7 +138,6 @@ class LiveAltTab extends AltTab.WindowSwitcherPopup { _onDestroy() { super._onDestroy(); debug('#preview', 'onDestroy', this.was_accepted); - Main.wm._blockAnimations = this._block; if(!this.was_accepted) { // Select the starting window this._select(0); @@ -159,6 +156,10 @@ class LiveAltTab extends AltTab.WindowSwitcherPopup { }); let to = this._switcherList.windows[this._selectedIndex]; Tiling.focus_handler(to); + let actor = to.get_compositor_private(); + actor.x = this.clone.x; + actor.y = this.clone.y; + actor.set_scale(1, 1); } });