From a17a1da3b8e3c77187e10d3e5d99f53ef972b49a Mon Sep 17 00:00:00 2001 From: "mr. m" Date: Sun, 15 Jun 2025 06:15:22 +0200 Subject: [PATCH] fix: Fixed context menu data disappearing too early, b=no-bug, c=workspaces --- src/zen/workspaces/ZenWorkspaces.mjs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/zen/workspaces/ZenWorkspaces.mjs b/src/zen/workspaces/ZenWorkspaces.mjs index 8ee136556..4c8ea0d99 100644 --- a/src/zen/workspaces/ZenWorkspaces.mjs +++ b/src/zen/workspaces/ZenWorkspaces.mjs @@ -1135,7 +1135,9 @@ var gZenWorkspaces = new (class extends ZenMultiWindowFeature { workspaceActions.addEventListener('popupshowing', this.updateWorkspaceActionsMenu.bind(this)); workspaceActions.addEventListener('popuphidden', () => { setTimeout(() => { - this.#contextMenuData = null; + setTimeout(() => { + this.#contextMenuData = null; + }, 0); }, 0); // Delay to ensure the context menu data is cleared after the popup is hidden });