padOsd: Set menu manager on pad chooser popup

Likewise to action menus, this does now need a menu manager
that lets the popup stack a grab on top of the pad OSD's.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2279>
This commit is contained in:
Carlos Garnacho 2022-04-23 19:53:46 +02:00 committed by Marge Bot
parent 1c95283913
commit 9ee7af233c

View File

@ -67,6 +67,9 @@ var PadChooser = GObject.registerClass({
this._padChooserMenu.actor.hide(); this._padChooserMenu.actor.hide();
Main.uiGroup.add_actor(this._padChooserMenu.actor); Main.uiGroup.add_actor(this._padChooserMenu.actor);
this._menuManager = new PopupMenu.PopupMenuManager(this);
this._menuManager.addMenu(this._padChooserMenu);
for (let i = 0; i < devices.length; i++) { for (let i = 0; i < devices.length; i++) {
let device = devices[i]; let device = devices[i];
if (device == this.currentDevice) if (device == this.currentDevice)