Skip to content

feat(engine): follow a fold from the screens' own callbacks - #75

Merged
Mastersam07 merged 2 commits into
devfrom
feat/screen-callbacks
Sep 27, 2026
Merged

Mastersam07 merged 2 commits into
devfrom
feat/screen-callbacks

Conversation

@Mastersam07

@Mastersam07 Mastersam07 commented Sep 27, 2026 •

Copy link
Copy Markdown
Owner

What: A foldable's window used to learn which panel the guest draws on by polling the display report once a second. Every display port vends CoreSimDeviceIO's grouped screen callbacks on Xcode 27, and their properties callback fires on both panels for every fold, about half a second before the report names the new panel. The display session now registers those callbacks (frames from frameCallback, surfaces from surfacesChangedCallback), keeping the damage and surface callbacks as the fallback where a port lacks them, and publishes what each screen announces. The watcher answers an announcement with a short burst of re-reads until the report changes; its clock became a five second safety net.

Closes #68.

The window learnt which panel the guest draws on by polling the display report once a second. Every display port vends the grouped screen callbacks on Xcode 27, and their properties callback fires on both panels for every fold about half a second before the report names the new panel. The session registers them, with the damage and surface callbacks as the fallback, and the watcher answers each announcement with a short burst of re-reads; its clock is a five second safety net.
@Mastersam07
Mastersam07 merged commit 160eec8 into dev Sep 27, 2026
2 checks passed
@Mastersam07
Mastersam07 deleted the feat/screen-callbacks branch September 27, 2026 12:08
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.

Follow the guest's screen changes through CoreSimulator's callbacks instead of polling

1 participant