popupMenu: Drop unused blockSourceEvents switch
This could be used to selectively ignore events on the source actor, but is now unused. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2045>
This commit is contained in:
parent
0f315a63f3
commit
63725ef0ef
@ -493,10 +493,6 @@ var PopupMenuBase = class {
|
||||
|
||||
this.isOpen = false;
|
||||
|
||||
// If set, we don't send events (including crossing events) to the source actor
|
||||
// for the menu which causes its prelight state to freeze
|
||||
this.blockSourceEvents = false;
|
||||
|
||||
this._activeMenuItem = null;
|
||||
this._settingsActions = { };
|
||||
|
||||
@ -1323,8 +1319,7 @@ var PopupMenuManager = class {
|
||||
|
||||
let source = menu.sourceActor;
|
||||
if (source) {
|
||||
if (!menu.blockSourceEvents)
|
||||
this._grabHelper.addActor(source);
|
||||
this._grabHelper.addActor(source);
|
||||
menudata.enterId = source.connect('enter-event',
|
||||
() => this._onMenuSourceEnter(menu));
|
||||
menudata.focusInId = source.connect('key-focus-in', () => {
|
||||
|
Loading…
Reference in New Issue
Block a user