From 95b9863a70bc4dd6838821dcb6588083c6d3b00a Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Thu, 16 Aug 2012 13:53:07 -0400 Subject: [PATCH] messageTray: Close the current box pointer when clicking on the tray --- js/ui/messageTray.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index 8b5286b00..fde083385 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,