windowManager: Support coords

This commit is contained in:
Jasper St. Pierre
2014-05-22 10:22:11 -04:00
parent a4cf0501ee
commit 752aca811c
5 changed files with 19 additions and 12 deletions

View File

@ -129,11 +129,10 @@ const WindowMenuManager = new Lang.Class({
this._manager = new PopupMenu.PopupMenuManager({ actor: Main.layoutManager.dummyCursor });
},
showForWindow: function(window) {
showForWindow: function(window, x, y) {
let menu = new WindowMenu(window);
this._manager.addMenu(menu);
let [x, y] = global.get_pointer();
Main.layoutManager.setDummyCursorGeometry(x, y, 0, 0);
menu.open(BoxPointer.PopupAnimation.NONE);
menu.actor.navigate_focus(null, Gtk.DirectionType.TAB_FORWARD, false);