Skip to content

Commit 2a3d3a4

Browse files
committed
fix(desktop): keep Dock icon when pet window enables visible-on-all-workspaces
OpenWork-Sync-Mode: export Qwen-Code-Base: d39b6b983e8c730dc499a04f03e45c31f9e2d168 Qwen-Code-Commit: 37e8a6edfda4a077114b0a40d300b9c60a60ba9b OpenWork-Base: da290c7
1 parent ec83fba commit 2a3d3a4

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

apps/electron/src/main/window-manager.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,13 @@ export class WindowManager {
660660

661661
window.setAlwaysOnTop(true, 'floating')
662662
if (process.platform === 'darwin') {
663-
window.setVisibleOnAllWorkspaces(true, { visibleOnFullScreen: true })
663+
// skipTransformProcessType: without it, setVisibleOnAllWorkspaces flips the
664+
// whole app to NSApplicationActivationPolicyAccessory, which removes the
665+
// main Dock icon a moment after the pet window shows. Keep the process type.
666+
window.setVisibleOnAllWorkspaces(true, {
667+
visibleOnFullScreen: true,
668+
skipTransformProcessType: true,
669+
})
664670
}
665671

666672
// Register BEFORE load so the bootstrap preload's __get-workspace-id resolves.

0 commit comments

Comments
 (0)