mirror of
https://github.com/gosticks/PaperWM.git
synced 2026-10-04 11:36:54 +00:00
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:
+4
-3
@@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user