Understand streaming capture layers
The Steam Headless User Interface (SHUI), Moonlight and Steam Link can show the same game while receiving pictures from different places. In Gaming Mode, the web interface and Sunshine capture the outer desktop display, while Steam captures the inner Gamescope session. This difference helps explain why a game, menu or keyboard shortcut can behave differently between clients.
This guide describes Steam Headless's built-in streaming configuration and session modes. Custom Sunshine capture settings or additional per-game Gamescope instances can change the arrangement.
Which software does what?
| Streaming method | Runs in the container | Runs on your viewing device | What supplies the picture? |
|---|---|---|---|
| Browser desktop portal | Steam Headless UI | Your web browser | KWin's virtual display |
| Sunshine and Moonlight | Sunshine | Moonlight | KWin's virtual display |
| Steam Remote Play | Steam | Steam Link or another Steam client | KWin in Desktop Mode; Gamescope in Gaming Mode |
The web interface includes its own browser streaming service. It does not receive video from Sunshine. Sunshine is a separate streaming host used by Moonlight. Similarly, Steam Remote Play is Steam's streaming service, and Steam Link is a client for it. These are independent streams, even when they show similar pictures.
A compositor arranges application windows into the picture you see. KWin is KDE's compositor and provides the container's virtual display. Gamescope is another compositor designed for games. In Steam Headless Gaming Mode, it runs inside KWin as a fullscreen window containing Steam and its games. This arrangement is called a nested compositor.
PipeWire carries captured video frames from the compositor to the streaming software. Using PipeWire does not mean every stream captures the same display layer.
Desktop Mode: one display layer
In Desktop Mode, KDE, Steam and games use KWin's display. The web interface and Sunshine capture that virtual display. Steam's Wayland capture path also obtains a KWin screen stream through the desktop portal. Steam does not create its own Wayland compositor here.
Opening Big Picture in Desktop Mode changes Steam's interface; it does not switch the session to Gaming Mode. KDE still manages desktop windows and focus. A game can start behind Big Picture, and Steam's overlay or controller layout can behave differently from the Gaming session. Sharing a capture source does not guarantee identical menus, input handling or presentation between clients.
Gaming Mode: an inner session and an outer display
KWin keeps running in Gaming Mode. Gamescope presents Steam and the game inside its fullscreen window, then sends that window to KWin. Steam Remote Play takes its picture from Gamescope's own PipeWire capture source. The web interface and Sunshine take theirs from KWin, after Gamescope's window has become part of the outer display.
The diagrams show the video path. Audio, controller input and keyboard shortcuts have their own routing; the arrows do not mean one streaming service passes its video to another. The browser stream and Moonlight may show the same outer display, but their encoding and client behaviour remain independent.
Why the views can disagree
| What you notice | How the layers help explain it |
|---|---|
| A game is visible in the web portal or Moonlight, but Steam Link stays black or shows the launcher | The game may have opened on outer KWin rather than inside Gamescope. KWin can show it while Steam's Gamescope capture cannot. Other capture or encoding faults can also produce a black screen. |
| A desktop prompt appears in the web portal or Moonlight but not Steam Link | A prompt belonging to outer KWin is outside Gamescope's capture. Use the outer view to inspect it. |
| Closing a window through the browser keyboard restarts the Gaming session | An outer desktop shortcut such as Alt+F4 can close Gamescope's window rather than the game inside it. Prefer the game's exit action or controller menu. |
| Steam Link's overlay, Resume action or touch controls behave differently in Desktop Mode | Steam's game association and input layout are separate from successful screen capture. Seeing the game does not prove Steam has associated its window with the running game. |
Games launched through Steam in Gaming Mode should stay inside Gamescope, including emulator windows started by another launcher. Flatpak applications remain sandboxed; connecting to the wrong compositor is a display-routing problem, not evidence that an application escaped its sandbox.
Choose a view for the task
Use Gaming Mode for Steam Link game streaming, especially when relying on Steam's controller interface and overlay. Use the web interface or Moonlight to view and control the whole container display, in either mode, and to inspect outer prompts or windows that Steam Link does not show.
If the views disagree, compare them before assuming the game has failed: check whether the game is running, whether it appears inside the Gaming session, and whether Steam still recognises it. When switching modes, Steam Link may disconnect and need to reconnect.
For related guidance, see the desktop portal, Sunshine configuration, Gamescope and MangoHud, and streaming troubleshooting.