Skip to content

[Bug]: Cap remains active in macOS App Switcher (Cmd+Tab) after closing Main Window with 'X' #1859

@dennyschroeder

Description

@dennyschroeder

Hi @richiemcilroy,

I noticed an issue with how Cap handles its window lifecycle and application state on macOS, which heavily disrupts the daily workflow when switching between applications.

The Bug:
Cap functions beautifully as a Menubar utility. However, when I click "Open Main Window" from the Menubar dropdown and then subsequently close this main control panel using the red "X" button in the top-left corner, the window disappears, but Cap remains trapped in an ambiguous state.

  • The Problem: Even though there is no active window on my screen, Cap still appears as an active application inside the macOS Dock and, more importantly, inside the macOS App Switcher (Cmd + Tab / Alt-Tab).
  • When I use Cmd + Tab to cycle through my open applications, I land on Cap, but it focuses nothing because the window was closed. I have to click into another app to make the Menubar focus shift away from Cap.

Proposed Solution:
Please modify the window-close behavior. When the Main Window is closed via the "X" button, the application should dynamically adjust its activation policy (NSApplication.ActivationPolicy) to act strictly as a background/menubar agent (.accessory). It should completely disappear from the Dock and the Cmd + Tab App Switcher until explicitly opened again from the Menubar.
Greetings, Denny

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions