From ffab4a8c022267a408d8123062f4f53793b796cc Mon Sep 17 00:00:00 2001 From: "Mr. M" Date: Sun, 8 Jun 2025 01:21:45 +0200 Subject: [PATCH] feat: Always mantain hover state after using app commands for switching workspaces, b=no-bug, c=workspaces --- src/zen/workspaces/ZenWorkspaces.mjs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/zen/workspaces/ZenWorkspaces.mjs b/src/zen/workspaces/ZenWorkspaces.mjs index bbd35c7cd..78666c8c8 100644 --- a/src/zen/workspaces/ZenWorkspaces.mjs +++ b/src/zen/workspaces/ZenWorkspaces.mjs @@ -524,7 +524,7 @@ var gZenWorkspaces = new (class extends ZenMultiWindowFeature { _handleAppCommand(event) { // note: Dont use this._hoveringSidebar as it's not as reliable as checking for :hover - if (!this.workspaceEnabled || !gNavToolbox.matches(':hover')) { + if (!this.workspaceEnabled || !this._hoveringSidebar) { return; } @@ -542,6 +542,9 @@ var gZenWorkspaces = new (class extends ZenMultiWindowFeature { event.preventDefault(); break; } + requestAnimationFrame(() => { + gNavToolbox.setAttribute('zen-has-hover', 'true'); + }); } _setupSidebarHandlers() {