messageTray: Only try to focus the summary when summoning the tray by <Super>M
Otherwise, when closing the tray, we'll try to focus an actor, which will focus the stage window, which will drop the focus from whatever window we already had focused. https://bugzilla.gnome.org/show_bug.cgi?id=710347
This commit is contained in:
parent
2659ba6bb4
commit
f72f39bc26
@ -2212,7 +2212,10 @@ const MessageTray = new Lang.Class({
|
||||
},
|
||||
|
||||
toggleAndNavigate: function() {
|
||||
if (this.toggle())
|
||||
if (!this.toggle())
|
||||
return;
|
||||
|
||||
if (this._traySummoned)
|
||||
this._summary.navigate_focus(null, Gtk.DirectionType.TAB_FORWARD, false);
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user