diff --git a/apps/desktop/src/pet-window.ts b/apps/desktop/src/pet-window.ts index e4af7fc5..515d12d1 100644 --- a/apps/desktop/src/pet-window.ts +++ b/apps/desktop/src/pet-window.ts @@ -194,6 +194,13 @@ function createBasePetWindow(title: string, position: Point): BrowserWindow { window.setMenu(null); window.setAlwaysOnTop(true, "floating"); + // Show the pet window on all macOS Spaces (desktop workspaces). + // Without this, the window is bound to the Space where it was created + // and disappears when the user switches to another Space. + if (process.platform === "darwin") { + window.setVisibleOnAllWorkspaces(true, { visibleOnFullScreen: true }); + } + window.webContents.setWindowOpenHandler(() => ({ action: "deny" })); window.webContents.on("will-navigate", (event, url) => { if (isAllowedPetDocumentUrl(url)) return;