Blame SOURCES/0001-fileItem-Just-destroy-menus.patch

66b32e
From 506c6d69eaa5e056d9580a28e9c200586b0e1fb0 Mon Sep 17 00:00:00 2001
66b32e
From: =?UTF-8?q?Florian=20M=C3=BCllner?= <fmuellner@gnome.org>
66b32e
Date: Fri, 2 Dec 2022 15:20:40 +0100
66b32e
Subject: [PATCH] fileItem: Just destroy menus
66b32e
66b32e
The menu manager is smart enough to remove the menu automatically,
66b32e
and the actor will be destroyed alongside the menu. Not doing those
66b32e
actions explicitly allows the automatic handling to proceed without
66b32e
confusing the grab state.
66b32e
---
66b32e
 extensions/desktop-icons/fileItem.js | 4 ----
66b32e
 1 file changed, 4 deletions(-)
66b32e
66b32e
diff --git a/extensions/desktop-icons/fileItem.js b/extensions/desktop-icons/fileItem.js
66b32e
index 44a93352..f2f03440 100644
66b32e
--- a/extensions/desktop-icons/fileItem.js
66b32e
+++ b/extensions/desktop-icons/fileItem.js
66b32e
@@ -575,10 +575,6 @@ var FileItem = class {
66b32e
 
66b32e
     _removeMenu() {
66b32e
         if (this._menu != null) {
66b32e
-            if (this._menuManager != null)
66b32e
-                this._menuManager.removeMenu(this._menu);
66b32e
-
66b32e
-            Main.layoutManager.uiGroup.remove_child(this._menu.actor);
66b32e
             this._menu.destroy();
66b32e
             this._menu = null;
66b32e
         }
66b32e
-- 
66b32e
2.38.1
66b32e