mirror of
https://github.com/morgan9e/dash-to-panel
synced 2026-04-15 00:34:05 +09:00
Remove focus from window while previews are up
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user