[gnome-shell] messageTray: Only try to focus the summary when summoning the tray by <Super>M
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] messageTray: Only try to focus the summary when summoning the tray by <Super>M
- Date: Thu, 17 Oct 2013 17:07:50 +0000 (UTC)
commit f72f39bc26ab8e4883cfb7fc83dd68c8839d6d44
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Wed Oct 16 21:36:09 2013 -0400
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
js/ui/messageTray.js | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js
index c66c9f6..f8e029c 100644
--- a/js/ui/messageTray.js
+++ b/js/ui/messageTray.js
@@ -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);
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]