github selkies-project/selkies 3689887

pre-release22 minutes ago

fix(web): Ask a new connection for the cursor a held pointer lock composited

Pointer lock hides the page's cursor and asks the server to composite one
(p,1, SET_NATIVE_CURSOR_RENDERING,1), but only when the lock changes. A
server behind a new connection (a restart, or a resize that replaced the
capture) starts without that request, so a page that kept its lock across the
reconnect moved the pointer with no cursor drawn at all. Seen on a GNOME host
under portal capture: gaming mode's lock and the resize to the screen it
fullscreens land together, the resize replaces the server, and the cursor never
came back on either transport.

Input.resumePointerLock() asks again while the stream holds the lock, and both
transports call it where they already resume the trackpad pointer echo. The new
e2e/locked_cursor_reconnect.spec.ts takes a real lock in Chromium on the cursor
fixture page and checks the lock asks, a reconnect under it asks again, and one
without it asks nothing.

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com

Don't miss a new selkies release

NewReleases is sending notifications on new releases.