Skip to content

Application: The app in front everywhere #1393

Open

Description

@oneo-me

Context

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

Reference: NSGo's #570; GNOME Shell's Shell.WindowTracker through an extension, KWin's scripting; IApplicationActivationManager's AUMID

Acceptance

  • desktop.FrontmostApp reports the app in front on Wayland, where it is zero, a UWP app rather than its frame host on Windows, and on macOS a full screen of an app's own that changes no Space as it happens, and tells a zoomed window under a hidden menu bar and Dock from full screen; the macOS backend's reading and notifications are tested on a desktop, while its FullScreen and the Windows and X11 backends, compiled and unit-tested, are checked with a real full-screen player and a maximized window there

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

    Implementation and verification are in #2065 (head 0d237221e57a67d75e66433603550527e3e8efe1, captured main base 528279400). This adds optional wlr foreign-toplevel v2 tracking, Windows packaged/hosted identity resolution and AppKit presentation KVO; the issue remains open for the acceptance gaps below.

    Final Go-source verification passed the combined six desktop target check, host check, 14 module/API/layering/linking/skills/duplicate checks, six core/macOS frontmost checks and 11 changelog checks. The Windows launcher registration race found during native acceptance is fixed; the relevant Windows target and duplicate checks pass afterward. Private Xvfb/Openbox verified real playback, identity/PID, actual maximization, fullscreen and restoration. Private headless Sway verified real playback, app IDs/names, focus, fullscreen and close transitions; its maximize request was ignored and is not maximized-window evidence. The existing native Wayland two-window pointer-routing regression also passes after the shared binding extraction. The Linux run has three actual OS fixtures and one atomic-state unit check, all passing.

    On the final Windows Go sources, the native metadata/host-fallback, unpackaged identity and real Media Foundation window-state player cases each pass three repetitions (nine passes, no skips, exit 0). The player checks actual maximization, fullscreen and restoration through the native reader. Before the final rebase, one fresh controlled Calculator instance also passed real AUMID/name/PID resolution on its visible CoreWindow. That does not verify an actual ApplicationFrameHost-hosted client. The tracked player was visible, but the disconnected session returned foreground HWND 0 and a zero public signal, so public foreground delivery remains unverified. macOS's real Foundation KVO regression passes, but does not substitute for fullscreen-player or hidden-Dock/menu zoom acceptance.

    Remaining work: GNOME/KWin integrations without the optional Wayland protocol, an actual legacy frame-hosted UWP client, Windows foreground signal delivery, macOS player/hidden-system-UI acceptance and legacy players that declare no AppKit fullscreen state. These are recorded in the roadmap; this PR does not close #1393. Owned test desktops, tasks and processes are cleaned up separately from shared sessions and caches.

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