mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
ctrlAltTab: Only set the stage focus mode when we're focusing a widget
This ensures that we don't accidentally lose focus when switching to the message tray. https://bugzilla.gnome.org/show_bug.cgi?id=684633
This commit is contained in:
parent
06e9bf9b0a
commit
a171e92e6c
1 changed files with 8 additions and 7 deletions
|
|
@ -54,16 +54,17 @@ const CtrlAltTabManager = new Lang.Class({
|
|||
},
|
||||
|
||||
focusGroup: function(item) {
|
||||
if (global.stage_input_mode == Shell.StageInputMode.NONREACTIVE ||
|
||||
global.stage_input_mode == Shell.StageInputMode.NORMAL)
|
||||
global.set_stage_input_mode(Shell.StageInputMode.FOCUSED);
|
||||
|
||||
if (item.window)
|
||||
if (item.window) {
|
||||
Main.activateWindow(item.window);
|
||||
else if (item.focusCallback)
|
||||
} else if (item.focusCallback) {
|
||||
item.focusCallback();
|
||||
else
|
||||
} else {
|
||||
if (global.stage_input_mode == Shell.StageInputMode.NONREACTIVE ||
|
||||
global.stage_input_mode == Shell.StageInputMode.NORMAL)
|
||||
global.set_stage_input_mode(Shell.StageInputMode.FOCUSED);
|
||||
|
||||
item.root.navigate_focus(null, Gtk.DirectionType.TAB_FORWARD, false);
|
||||
}
|
||||
},
|
||||
|
||||
// Sort the items into a consistent order; panel first, tray last,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue