From 8bb2c425c6e13ee8da270874c5f2a7be2f44ed65 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Fri, 10 Aug 2012 17:31:09 -0300 Subject: [PATCH] messageTray: Properly track notificationExpanded This makes a lot more sense. --- js/ui/messageTray.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index 4eb0eb220..54750cf68 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -1778,7 +1778,7 @@ const MessageTray = new Lang.Class({ let notificationsPending = notificationQueue.length > 0 && (!notificationsLimited || notificationUrgent); let nextNotification = notificationQueue.length > 0 ? notificationQueue[0] : null; let notificationPinned = this._pointerInTray && !this._pointerInSummary && !this._notificationRemoved; - let notificationExpanded = this._notificationBin.y < - this.actor.height; + let notificationExpanded = this._notification && this._notification.expanded; let notificationExpired = this._notificationTimeoutId == 0 && !(this._notification && this._notification.urgency == Urgency.CRITICAL) && !this._pointerInTray &&