Skip to content

Application: Panels that do not activate on Windows #1376

Open

Description

@oneo-me

Context

Part of #1306. The roadmap's Application and windows section lists this item (line 141 of docs/roadmap.md at f7fc2f5c) with no issue.

Reference: WS_EX_NOACTIVATE; macOS's NsgoPanel

Acceptance

  • A panel takes the keyboard without activating the app or taking the foreground from the app in front, as macOS's do

For: 开发@柚子

Activity

  1. added
    enhancement
    on Nov 21, 2026
  2. self-assigned this
    on Nov 22, 2026
  3. houko commented on Nov 22, 2026

    @houko
    Collaborator

    Fresh source audit at 34ba08a0f: Windows already supports the explicit PanelOptions.NoActivate mode. openSurface sets WS_EX_NOACTIVATE | WS_EX_TOPMOST, mouse activation returns MA_NOACTIVATE, and the show path avoids foreground activation. That mode intentionally does not take native keyboard focus; the default keyboard-capable panel activates the app, as the architecture currently documents. These are different from the combined acceptance here.

    The referenced style alone does not provide the requested keyboard-capable nonactivating panel. Microsoft's extended styles documentation describes foreground suppression, while SetFocus explicitly also activates the focused window or its parent. AttachThreadInput shares focus/input state and is not by itself a documented guarantee that the previous foreground app stays active.

    Keeping this issue open for the combined contract and native proof. Changing every panel to NoActivate would remove keyboard delivery and would not satisfy it. No production fix, native foreground/IME acceptance, or parity with macOS is claimed in this audit. No new PR is needed for a source/documentation audit with no changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions