Skip to content

Application: Surfaces on Linux #1374

Closed
Closed

Description

@oneo-me

Context

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

Reference: macOS's own surface; NSH's Window.open (NSH's #989, NSH's #1011, NSH's #1137)

Acceptance

  • The backend runs the app on a surface in no window and attaches each one the app opens: windows, and panels that take the keyboard and hide as they lose it; it does for apps run with a function, its panels placed by the compositor rather than under their tray icon

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

    Current main (34ba08a0f) already implements this acceptance: internal/backend/run_linux.go selects a hidden application surface for nsgo.Run(App); Linux startEngine enables window surfaces, openSurface attaches their trees on the same engine/main loop, and GTK activity changes hide a HideOnBlur panel and report EventWindowHidden.

    Verified the existing runtime on Ubuntu using an owned Xvfb display and isolated D-Bus session. A native regression typed into the panel's GtkEntry through XTest, observed shared state in a sibling window, transferred native focus to hide the panel twice (GTK state and Window.Visible agreed), closed both surfaces, and reopened a window retaining the same state while the application surface stayed unmapped. All four focused native surface/thread tests passed with no skips. A negative control disabling the existing blur branch failed at the intended hide assertion; original source was restored and the final run passed.

    Both Linux architecture checks passed on Ubuntu, as did layering/skills/API verification. PR #1994 adds the regression and removes the completed roadmap row; no production fix was needed. This is X11 native verification under Xvfb, not a claim about a particular Wayland compositor's placement policy; explicit anchoring/layer-shell work remains separate.

    Closing as completed because the runtime already supports the requested application surfaces and keyboard panels on main. The regression/docs PR remains unmerged.

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