Skip to content

fix(receiver): defer fullscreen transitions while display sleeps - #179

Draft
Betafer wants to merge 1 commit into
swellweb:maint-3.5from
Betafer:codex/fix-receiver-fullscreen-wake-v3.5
Draft

fix(receiver): defer fullscreen transitions while display sleeps#179
Betafer wants to merge 1 commit into
swellweb:maint-3.5from
Betafer:codex/fix-receiver-fullscreen-wake-v3.5

Conversation

@Betafer

@Betafer Betafer commented Aug 21, 2026

Copy link
Copy Markdown

Summary

  • defer SDL fullscreen transitions while the physical display is asleep
  • retry the pending transition automatically after wake
  • keep the Receiver network/render loop responsive during that interval
  • restore windowed size and position only after a successful transition

Why

On macOS, SDL's Cocoa fullscreen operation may wait synchronously for a Space transition. If the iMac panel is asleep, that transition can stall and make the Receiver appear disconnected. Tracking the applied state separately lets the Receiver postpone only the window operation while continuing to serve the session.

Validation

  • Receiver parser tests: 67 checks passed
  • Receiver input queue tests: 562 checks passed
  • Receiver profile tests: 13 checks passed
  • full Receiver build completed successfully

This PR is limited to the fullscreen state machine and disconnect ordering needed for a reliable retry.

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