[gnome-shell] messageTray: Close the current box pointer when clicking on the tray



commit 95b9863a70bc4dd6838821dcb6588083c6d3b00a
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Thu Aug 16 13:53:07 2012 -0400

    messageTray: Close the current box pointer when clicking on the tray

 js/ui/messageTray.js |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js
index 8b5286b..fde0833 100644
--- a/js/ui/messageTray.js
+++ b/js/ui/messageTray.js
@@ -1321,7 +1321,13 @@ const MessageTray = new Lang.Class({
         this._notification = null;
         this._notificationClickedId = 0;
 
-        this._summaryBin = new St.Bin({ x_align: St.Align.END });
+        this._summaryBin = new St.Bin({ x_align: St.Align.END,
+                                        reactive: true });
+        this._summaryBin.connect('button-release-event', Lang.bind(this, function(actor, event) {
+            this._setClickedSummaryItem(null);
+            this._updateState();
+            actor.grab_key_focus();
+        }));
         this.actor.add_actor(this._summaryBin);
         this._summary = new St.BoxLayout({ name: 'summary-mode',
                                            reactive: true,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]