Skip to content

Commit

Permalink
grouped-window-list: appGroup - make sure to call PopupMenu.close()
Browse files Browse the repository at this point in the history
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 linuxmint/mint21.2-beta#11
  • Loading branch information
mtwebster committed Jun 21, 2023
1 parent cea80b6 commit 7f86417
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 7f86417

Please sign in to comment.