From ea848e2c1f602fe314ecf0049f3a584220efda04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Hedin=20Br=C3=B8nner?= Date: Wed, 2 Oct 2019 21:26:03 +0200 Subject: [PATCH] liveAltTab: kill unminimize animations manually In 3.34 there's no _blockAnimations check, so we just set the correct coordinates and scale immediately. --- liveAltTab.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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); } });