popupMenu: Fix removing the active menu from PopupMenuManager
Commit b42af9aa99
changed the parameter list of _closeMenu()
to account for changes in the GrabHelper ungrab mechanism, but
didn't update other callers.
https://bugzilla.gnome.org/show_bug.cgi?id=709806
This commit is contained in:
parent
f83144b79a
commit
59e868b8f5
@ -1114,7 +1114,7 @@ const PopupMenuManager = new Lang.Class({
|
|||||||
|
|
||||||
removeMenu: function(menu) {
|
removeMenu: function(menu) {
|
||||||
if (menu == this.activeMenu)
|
if (menu == this.activeMenu)
|
||||||
this._closeMenu(menu);
|
this._closeMenu(false, menu);
|
||||||
|
|
||||||
let position = this._findMenu(menu);
|
let position = this._findMenu(menu);
|
||||||
if (position == -1) // not a menu we manage
|
if (position == -1) // not a menu we manage
|
||||||
|
Loading…
Reference in New Issue
Block a user