popupMenu: Fix another child popup regression
When switching menus, we need to make sure we close all existing grabs, not just the first one. https://bugzilla.gnome.org/show_bug.cgi?id=695859
This commit is contained in:
parent
e6469df065
commit
6fd5f0e3de
@ -2110,9 +2110,9 @@ const PopupMenuManager = new Lang.Class({
|
|||||||
},
|
},
|
||||||
|
|
||||||
get activeMenu() {
|
get activeMenu() {
|
||||||
let actor = this._grabHelper.currentGrab.actor;
|
let firstGrab = this._grabHelper.grabStack[0];
|
||||||
if (actor)
|
if (firstGrab)
|
||||||
return actor._delegate;
|
return firstGrab.actor._delegate;
|
||||||
else
|
else
|
||||||
return null;
|
return null;
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user