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




commit 6644a726c9e06006530f0fa037206ca1bbd80d2d
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.

 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 ff83d2ceb2..9eae413070 100644
--- a/js/ui/popupMenu.js
+++ b/js/ui/popupMenu.js
@@ -479,10 +479,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 = { };
 
@@ -1307,8 +1303,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]