messageTray: Move adding the menu actor to MessageTrayContextMenu
This matches BackgroundMenu and EntryMenu. https://bugzilla.gnome.org/show_bug.cgi?id=699272
This commit is contained in:
parent
7563e04743
commit
e6ef11575b
@ -1544,6 +1544,9 @@ const MessageTrayContextMenu = new Lang.Class({
|
||||
this.parent(this._dummy, 0, St.Side.BOTTOM);
|
||||
this._tray = tray;
|
||||
|
||||
this.actor.hide();
|
||||
Main.layoutManager.addChrome(this.actor);
|
||||
|
||||
this._clearItem = this.addAction(_("Clear Messages"), function() {
|
||||
let toDestroy = [];
|
||||
let sources = tray.getSources();
|
||||
@ -1784,10 +1787,6 @@ const MessageTray = new Lang.Class({
|
||||
}
|
||||
return false;
|
||||
}));
|
||||
|
||||
this._contextMenu.actor.hide();
|
||||
Main.layoutManager.addChrome(this._contextMenu.actor);
|
||||
|
||||
},
|
||||
|
||||
_openContextMenu: function () {
|
||||
|
Loading…
Reference in New Issue
Block a user