[gnome-shell/wip/message-tray: 17/22] messageTray: Properly track notificationExpanded



commit 3d28237b351c781a7b0a19e8d7e62aea2fa83b96
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Fri Aug 10 17:31:09 2012 -0300

    messageTray: Properly track notificationExpanded
    
    This makes a lot more sense.

 js/ui/messageTray.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js
index 8538281..7e5de65 100644
--- a/js/ui/messageTray.js
+++ b/js/ui/messageTray.js
@@ -1752,7 +1752,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 &&



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