[gnome-shell/wip/carlosg/grabs-pt2: 17/22] popupMenu: Drop unused blockSourceEvents switch




commit 63725ef0eff42a586fdcd13e862eeeae2313256e
Author: Carlos Garnacho <carlosg gnome org>
Date:   Thu Nov 18 01:16:43 2021 +0100

    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>

 js/ui/popupMenu.js | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
---
diff --git a/js/ui/popupMenu.js b/js/ui/popupMenu.js
index 0cb4970c1f..72396f107f 100644
--- a/js/ui/popupMenu.js
+++ b/js/ui/popupMenu.js
@@ -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', () => {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]