diff --git a/src/main/window/createMainWindow.test.ts b/src/main/window/createMainWindow.test.ts index a2f764e8872..934787a0e34 100644 --- a/src/main/window/createMainWindow.test.ts +++ b/src/main/window/createMainWindow.test.ts @@ -147,6 +147,9 @@ describe('createMainWindow', () => { }) ) const browserWindowOptions = browserWindowMock.mock.calls[0]?.[0] + // Why: macOS swallows the app-activating click unless the window accepts + // first mouse, forcing a second click to focus the floating workspace. + expect(browserWindowOptions.acceptFirstMouse).toBe(true) if (process.platform === 'darwin') { expect(browserWindowOptions).toMatchObject({ titleBarStyle: 'hiddenInset' diff --git a/src/main/window/createMainWindow.ts b/src/main/window/createMainWindow.ts index e6151e7c3e8..0c422758946 100644 --- a/src/main/window/createMainWindow.ts +++ b/src/main/window/createMainWindow.ts @@ -230,6 +230,10 @@ export function createMainWindow( minHeight: MIN_HEIGHT, title: opts?.title ?? 'Orca', show: false, + // Why: macOS swallows the app-activating click by default, so clicking + // back into Orca (e.g. the floating workspace) needed a second click. + // macOS-only option; Windows/Linux already deliver that click. + acceptFirstMouse: true, // Why: on macOS the menu lives in the system menu bar, so the in-window // menu bar is irrelevant. On Windows/Linux we auto-hide so the menu bar // doesn't consume a dedicated row of vertical space on every launch —