Skip to content

0036: A screen's notices stay on its own output

Status: Accepted (owner, 2026-11-24). Proposed (2026-11-21, owner's ruling after "Laptop joined" showed on the laptop)

Context

A device that joins another screen streams that screen's Gamescope capture. The capture included the joined screen's overlay, so the joiner read its own "joined" toast, and 1f76d52 dropped join toasts altogether. The owner wants the joined screen to say who joined, the joiner never to see its own name, and one way of doing it rather than one rule per screen kind.

Decision

The picture a screen shares never carries that screen's notices. Each screen's notices go only to its own output:

  • Gamescope gets a second patch (stack/images/screen/gamescope/capture-without-overlay.patch): paint_pipewire leaves the overlay window out of the capture. The TV's notices stay on HDMI only.
  • A device screen has no output of its own besides its stream, so its overlay daemon maps no window and writes each pill frame to couchdogs-overlay.frame in the screen's run directory. The server blends that file into that device's stream only (stack/server/src/notice_frame.{hpp,cpp}).
  • Join toasts come back on the joined screen.

Not chosen: suppressing toasts per case (the joiner's name problem returns with every new notice), drawing every notice in the server (the TV has no server in its path).

Consequences

One more patch to re-check on a Gamescope bump (ADR 0035). A device's notices cost the server one stat per frame and a blend while one shows. A device's own notice can sit over its join pill for its 4 s (both top left).

Amendment (2026-11-24): frame v2 carries the menu's boxes

The join ring menu (ADR 0033) needs the server to hit-test chips it did not draw. The frame file is now CDNOTE02: the same header and pixels, then a count (0..4) and per item a 16-byte id and its box on the root (notice_frame.hpp has the layout). The server still reads CDNOTE01, with no items. The overlay always writes v2, so a server older than this cannot read a new screen's notices: roll the server and the screen image out together.