popupMenu: Raise menu when popping it up

When a menu gets popped up, it should never
pop behind anything else in the shell.

https://bugzilla.gnome.org/show_bug.cgi?id=657082
This commit is contained in:
Ray Strode 2011-08-29 12:04:17 -04:00
parent aabe56ba79
commit 7f767c49d8

View File

@ -1112,6 +1112,8 @@ PopupMenu.prototype = {
this._boxPointer.setPosition(this.sourceActor, this._alignment); this._boxPointer.setPosition(this.sourceActor, this._alignment);
this._boxPointer.show(animate); this._boxPointer.show(animate);
this.actor.raise_top();
this.emit('open-state-changed', true); this.emit('open-state-changed', true);
}, },