Skip to content

A round frozen by a focus loss resumes behind a breather - #51

Merged
jpcottin merged 1 commit into
mainfrom
fix/focus-return-breather
Oct 29, 2026
Merged

jpcottin merged 1 commit into
mainfrom
fix/focus-return-breather

Conversation

@jpcottin

Copy link
Copy Markdown
Owner

The phone stops updating the game while its window has no focus (the
notification shade, a call, another split-screen pane), so a round is
not lost unattended. When the focus came back the round went on from the
very next frame: a bomb frozen a few pixels above the ship landed before
the player's finger and eyes were back on the game. Handing the game
back from the glasses already covers that moment with the usual post-hit
breather; the focus return now gets the same one, also for a round
paused under Settings, and never on the title or an end screen.

Three host-run tests cover it (two fail without the change); 155 tests.

The phone stops updating the game while its window has no focus (the
notification shade, a call, another split-screen pane), so a round is
not lost unattended. When the focus came back the round went on from the
very next frame: a bomb frozen a few pixels above the ship landed before
the player's finger and eyes were back on the game. Handing the game
back from the glasses already covers that moment with the usual post-hit
breather; the focus return now gets the same one, also for a round
paused under Settings, and never on the title or an end screen.

Three host-run tests cover it (two fail without the change); 155 tests.
@jpcottin
jpcottin merged commit 814fb2b into main Oct 29, 2026
21 checks passed
@jpcottin
jpcottin deleted the fix/focus-return-breather branch October 29, 2026 04:45
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