Skip to content

feat(windows): mosaic waiting image and moving a mosaic's input between sessions - #10

Merged
mlopezsegura merged 2 commits into
masterfrom
feature/mosaic-reconnecting
Nov 23, 2026
Merged

mlopezsegura merged 2 commits into
masterfrom
feature/mosaic-reconnecting

Conversation

@mlopezsegura

Copy link
Copy Markdown
Collaborator

Two changes for OpenStreamMS composite (mosaic) streams on Windows.

Waiting image for parts whose session is restarting

  • osms-mosaic.txt lines accept an optional image path (<session> <part> [<waiting image>]) and session 0.
  • While a part's session publishes no frames (it is restarting from the OpenStreamMS HUD), its tile shows that image (OSWP + width + height + BGRA, drawn by OpenStreamMS with the logo and "Reconnecting") instead of going black, and the stream keeps running for the other sessions.

Mouse and keyboard to another session of the mosaic

  • OpenStreamMS writes osms-input.txt next to sunshine.conf (Windows session, its part of the canvas and the canvas size) when the user moves the composite's mouse and keyboard to another member.
  • session_input then sends every batch of INPUT events to the OpenStreamMS relay in that session through the pipe osms-input-<session>, only if the pipe server is a SYSTEM process of that session (any process could create the pipe first and would get the keystrokes). The client opens it with SECURITY_IDENTIFICATION so the relay cannot impersonate Sunshine.
  • Absolute mouse positions are mapped from that session's part of the canvas to its desktop.
  • Keys and mouse buttons held in the previous session are released on the switch, and input stays in Sunshine's own session while the relay is missing.

Tests: RemoteIdd* (12, two new for the waiting image) and SessionInputTarget* (4 new) pass.

🤖 Generated with Claude Code

mlopezsegura and others added 2 commits November 23, 2026 14:23
…ting

A line of osms-mosaic.txt may end with the path of a waiting image ("OSWP",
width, height, BGRA pixels) and may use session 0 while the session of that
part restarts. The part keeps its place and shows the image (OpenStreamMS
draws its logo and "Reconnecting…") until the session publishes frames
again, instead of the layout dropping to fewer parts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…essions

OpenStreamMS writes osms-input.txt (session, its part of the canvas and the canvas
size) when the user moves the mouse and keyboard of a composite stream to another
member. Events go to the OpenStreamMS relay in that session through the pipe
osms-input-<session>, only if its server is a SYSTEM process of that session;
absolute positions are mapped from its part of the canvas to its desktop. Keys and
buttons held in the old session are released on the switch, and input stays in
this session while the relay is missing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mlopezsegura
mlopezsegura merged commit e3477c4 into master Nov 23, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant