mirror of
https://github.com/gosticks/PaperWM.git
synced 2026-10-04 19:46:53 +00:00
liveAltTab: Block un/minimize animations
When alt-tabbing to a scratch window we do an instant preview. Focusing the window would then trigger an un-minimize animation which would look weird.
This commit is contained in:
@@ -17,6 +17,10 @@ var LiveAltTab = Lang.Class({
|
||||
_getWindowList: function () {
|
||||
let tabList = global.display.get_tab_list(Meta.TabList.NORMAL_ALL,
|
||||
global.screen.get_active_workspace());
|
||||
|
||||
this._block = Main.wm._blockAnimations;
|
||||
Main.wm._blockAnimations = true;
|
||||
|
||||
if (Scratch.isScratchActive()) {
|
||||
return Scratch.getScratchWindows();
|
||||
} else {
|
||||
@@ -86,6 +90,7 @@ var LiveAltTab = Lang.Class({
|
||||
|
||||
_onDestroy: function() {
|
||||
debug('#preview', 'onDestroy', this.was_accepted);
|
||||
Main.wm._blockAnimations = this._block;
|
||||
if(!this.was_accepted) {
|
||||
// Select the starting window
|
||||
this._select(0);
|
||||
|
||||
Reference in New Issue
Block a user