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

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
Contributor

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.

@swellweb

Copy link
Copy Markdown
Owner

Maintenance review: this remains a separate sleep/wake fix, linked to #132. I will first reproduce the current behavior on 3.6 and check which changes are still needed before rebasing it. It is not included in the small 3.6.1 localization/layout/packaging batch, and I am not closing the issue based on this draft.

mjfrank added a commit to mjfrank/targetBridge that referenced this pull request Nov 16, 2026
… PR swellweb#179)

SDL's Cocoa fullscreen transition waits for a Space change that never
completes while the panel sleeps, freezing the main/network loop. The
transition is now deferred and applied after wake. Original change by
Betafer (swellweb#179).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_015AiywzXyRsfrH6x9nyNXRQ
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.

2 participants