0019: Messages over a running app are a GTK window Gamescope draws on top
Status: Superseded by ADR 0033 for the notice path (2026-11-18): the window
recipe below stands, the one-shot command and its docker exec per toast do not
Context
M6c step 3 needs to say things over a running game: "Handheld joined", and the "ask the starter" prompt. The shell cannot do it: when a game is in front the shell is behind it. Options: a second Servo kiosk with a transparent page; a small GTK3 window; drawing inside Gamescope (not ours to change). A throwaway spike in a headless Gamescope with glxgears in front found: a window tagged STEAM_OVERLAY=1 is drawn over the app while focus stays on the app; GAMESCOPE_EXTERNAL_OVERLAY did not show; a small override-redirect popup did not show at all; a full-screen RGBA GTK3 window showed only its box with the game visible around it, in 21 MB.
Decision
A short Python + GTK3 command in the screen image (couchdogs-overlay) draws a full-screen transparent window tagged STEAM_OVERLAY, one at a time per screen. The runner starts it through docker exec. It takes no input: padd answers a prompt from the starter's pads (A yes, B no).
Consequences
Memory only while a message shows, and no input path to secure. The screen image grows by GTK3 and PyGObject. If Gamescope drops or changes STEAM_OVERLAY, the messages stop showing but nothing else breaks; the shell's home still lists members and outcomes.
Amendment (2026-11-18): the window is a daemon now
ADR 0033 keeps this window recipe (a full-screen depth-32 RGBA window tagged
STEAM_OVERLAY, never an override-redirect popup) but starts it once per
screen as couchdogs-overlay daemon, and hands it notices as JSON datagrams on
couchdogs-overlay.sock in the screen's run directory. There is no child per
toast and no pid file; the daemon draws the one status pill every drawer uses
and unmaps the window when nothing shows. The GTK3/PyGObject dependency and the
memory cost (21 MB) are unchanged.