[gnome-shell] appDisplay: Remove unnecessary unmapped handler



commit 5e90e8d3851043867cb55589c3305068730aea83
Author: Florian Müllner <fmuellner gnome org>
Date:   Thu Aug 12 00:07:17 2021 +0200

    appDisplay: Remove unnecessary unmapped handler
    
    Since commit 35494f5d08, all menus are closed when their source
    gets unmapped.
    
    Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1948>

 js/ui/appDisplay.js | 10 ----------
 1 file changed, 10 deletions(-)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index a3e60b834f..950979647b 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -3430,16 +3430,6 @@ var AppIconMenu = class AppIconMenu extends PopupMenu.PopupMenu {
 
         this.actor.add_style_class_name('app-well-menu');
 
-        // Chain our visibility and lifecycle to that of the source
-        this._sourceMappedId = source.connect('notify::mapped', () => {
-            if (!source.mapped)
-                this.close();
-        });
-        source.connect('destroy', () => {
-            source.disconnect(this._sourceMappedId);
-            this.destroy();
-        });
-
         Main.uiGroup.add_actor(this.actor);
     }
 


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