Skip to content

Make first_frame tests robust against the Windows foreground lock - #13

Merged
MehdiMamas merged 1 commit into
mainfrom
hmw-first-frame-test
Nov 25, 2026
Merged

MehdiMamas merged 1 commit into
mainfrom
hmw-first-frame-test

Conversation

@MehdiMamas

Copy link
Copy Markdown
Owner

Refs #11.

Cause: the focus step is environmental. A background process can be refused SetForegroundWindow by the Windows foreground lock (HMW_NO_FOCUS). The target window is created without activation, so it is inactive either way. Not a regression in hider/normal_gate.

Changes (hmw-core/tests/first_frame.rs only):

  • focus is best effort: up to 5 attempts, then continue
  • quick_launch: fixed 150 ms sleep replaced by a bounded wait for 20 recorder samples

Local 3x run results to follow in a comment.

@MehdiMamas
MehdiMamas merged commit 23abf33 into main Nov 25, 2026
1 check passed
@MehdiMamas
MehdiMamas deleted the hmw-first-frame-test branch November 25, 2026 05:25
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