From 7f86417b9f80815218e4017c1cdd69dc2456e8db Mon Sep 17 00:00:00 2001 From: Michael Webster Date: Wed, 21 Jun 2023 13:58:13 -0400 Subject: [PATCH] grouped-window-list: appGroup - make sure to call PopupMenu.close() when destroying the hover menu. When a PopupMenu instance opens, global.menuStackLength is incremented. Panel tooltips are prevented from showing when that is non-zero. When cleaning up after middle-clicking an app, PopupMenu.close() was not being called, which would decrement that value. Fixes https://github.com/linuxmint/mint21.2-beta/issues/11 --- .../cinnamon/applets/grouped-window-list@cinnamon.org/menus.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/usr/share/cinnamon/applets/grouped-window-list@cinnamon.org/menus.js b/files/usr/share/cinnamon/applets/grouped-window-list@cinnamon.org/menus.js index bea5b26b53..ae6bd5cfbb 100644 --- a/files/usr/share/cinnamon/applets/grouped-window-list@cinnamon.org/menus.js +++ b/files/usr/share/cinnamon/applets/grouped-window-list@cinnamon.org/menus.js @@ -1237,7 +1237,7 @@ class AppThumbnailHoverMenu extends PopupMenu.PopupMenu { this.willUnmount = true; if (!this.box) return; - if (this.isOpen) this.close(); + if (this.isOpen) this.close(true); for (let w = 0, len = this.appThumbnails.length; w < len; w++) { if (this.appThumbnails[w] !== undefined) {