liveAltTab: kill unminimize animations manually

In 3.34 there's no _blockAnimations check, so we just set the correct
coordinates and scale immediately.
This commit is contained in:
Tor Hedin Brønner
2019-10-12 13:50:58 +02:00
parent 14362e1f96
commit ea848e2c1f
+4 -3
View File
@@ -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);
}
});