Remove focus from window while previews are up

This commit is contained in:
Charles Gagnon
2019-05-26 07:57:00 -04:00
parent 198c786266
commit c74fa64a66

View File

@@ -155,6 +155,7 @@ var PreviewMenu = Utils.defineClass({
this.menu.show();
this._refreshGlobals();
this.grab_key_focus();
}
this._mergeWindows(appIcon);
@@ -177,6 +178,7 @@ var PreviewMenu = Utils.defineClass({
this._animateOpenOrClose(false, () => this._resetHiddenState());
}
global.display.focus_default_window(1);
this._box.get_children().forEach(c => c.reactive = false);
this.menu.reactive = false;
this.currentAppIcon = null;
@@ -503,6 +505,8 @@ var PreviewMenu = Utils.defineClass({
Main.wm._blockAnimations = true;
workspace.activate(1);
Main.wm._blockAnimations = false;
this.grab_key_focus();
},
_focusMetaWindow: function(dimOpacity, window) {