mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
switcherPopup: Add a timestamp argument to _finish()
And use it elsewhere. https://bugzilla.gnome.org/show_bug.cgi?id=689653
This commit is contained in:
parent
a43ee41b0b
commit
7ff7ced504
3 changed files with 12 additions and 12 deletions
|
|
@ -52,11 +52,11 @@ const CtrlAltTabManager = new Lang.Class({
|
|||
}
|
||||
},
|
||||
|
||||
focusGroup: function(item) {
|
||||
focusGroup: function(item, timestamp) {
|
||||
if (item.window) {
|
||||
Main.activateWindow(item.window);
|
||||
Main.activateWindow(item.window, timestamp);
|
||||
} else if (item.focusCallback) {
|
||||
item.focusCallback();
|
||||
item.focusCallback(timestamp);
|
||||
} else {
|
||||
if (global.stage_input_mode == Shell.StageInputMode.NONREACTIVE ||
|
||||
global.stage_input_mode == Shell.StageInputMode.NORMAL)
|
||||
|
|
@ -164,9 +164,9 @@ const CtrlAltTabPopup = new Lang.Class({
|
|||
this._select(this._next());
|
||||
},
|
||||
|
||||
_finish : function() {
|
||||
this.parent();
|
||||
Main.ctrlAltTabManager.focusGroup(this._items[this._selectedIndex]);
|
||||
_finish : function(time) {
|
||||
this.parent(time);
|
||||
Main.ctrlAltTabManager.focusGroup(this._items[this._selectedIndex], time);
|
||||
},
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue