From ba6807cae74f285cbe8dc677e240fe6c44cebf67 Mon Sep 17 00:00:00 2001 From: zjzhu Date: Sun, 17 May 2026 22:46:58 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=8B=AC=E7=AB=8B?= =?UTF-8?q?=E6=8F=92=E4=BB=B6=E7=AA=97=E5=8F=A3=E9=87=8D=E5=85=A5=E6=9C=AA?= =?UTF-8?q?=E5=89=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/core/detachedWindowManager.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/core/detachedWindowManager.ts b/src/main/core/detachedWindowManager.ts index 9691aeb4..211b31cf 100644 --- a/src/main/core/detachedWindowManager.ts +++ b/src/main/core/detachedWindowManager.ts @@ -491,6 +491,9 @@ class DetachedWindowManager { for (const windowInfo of this.detachedWindowMap.values()) { if (windowInfo.pluginPath === pluginPath && !windowInfo.window.isDestroyed()) { if (windowInfo.window.isMinimized()) windowInfo.window.restore() + // fix: macOS 上分离窗口即使已经是显示状态,也可能被其他 App/window 完全盖住, + // 单独 focus() 不一定能提升窗口层级,所以先 show() 再 focus(),确保重入插件时窗口前置。 + windowInfo.window.show() windowInfo.window.focus() return true } From 425a3ddf9d8a74f0e55a53eeabcb8737aa6a861f Mon Sep 17 00:00:00 2001 From: zjzhu Date: Sun, 17 May 2026 23:17:50 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20=E9=99=90=E5=88=B6=E7=8B=AC=E7=AB=8B?= =?UTF-8?q?=E7=AA=97=E5=8F=A3=E6=98=BE=E7=A4=BA=E4=BF=AE=E5=A4=8D=E5=88=B0?= =?UTF-8?q?=20macOS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/core/detachedWindowManager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/core/detachedWindowManager.ts b/src/main/core/detachedWindowManager.ts index 211b31cf..c1a0efaf 100644 --- a/src/main/core/detachedWindowManager.ts +++ b/src/main/core/detachedWindowManager.ts @@ -493,7 +493,7 @@ class DetachedWindowManager { if (windowInfo.window.isMinimized()) windowInfo.window.restore() // fix: macOS 上分离窗口即使已经是显示状态,也可能被其他 App/window 完全盖住, // 单独 focus() 不一定能提升窗口层级,所以先 show() 再 focus(),确保重入插件时窗口前置。 - windowInfo.window.show() + if (process.platform === 'darwin') windowInfo.window.show() windowInfo.window.focus() return true }