This commit is contained in:
Jasper St. Pierre 2014-05-28 18:48:22 -04:00
parent 02060d2bbc
commit bf374ccabb

View File

@ -1263,16 +1263,12 @@ const NotificationDrawerList = new Lang.Class({
this._list.add_child(wrapper); this._list.add_child(wrapper);
// XXX -- figure out a better policy for this // XXX -- figure out a better policy for this
if (notification.actor.get_parent() == null) { let id = notification.actor.connect('parent-set', Lang.bind(this, function() {
wrapper.add_child(notification.actor); if (notification.actor.get_parent() == null) {
} else { notification.actor.disconnect(id);
let id = notification.actor.connect('parent-set', Lang.bind(this, function() { wrapper.add_child(notification.actor);
if (notification.actor.get_parent() == null) { }
notification.actor.disconnect(id); }));
wrapper.add_child(notification.actor);
}
}));
}
notification.connect('destroy', function() { notification.connect('destroy', function() {
wrapper.destroy(); wrapper.destroy();
@ -1734,8 +1730,8 @@ const MessageTray = new Lang.Class({
}); });
} }
this._notificationDrawer.pushNotification(notification);
this._updateState(); this._updateState();
this._notificationDrawer.pushNotification(notification);
}, },
_hotCornersChanged: function() { _hotCornersChanged: function() {