Skip to content

first_frame: retry foreground focus in the test fixture - #12

Merged
MehdiMamas merged 1 commit into
mainfrom
hmw-firstframe
Oct 18, 2026
Merged

MehdiMamas merged 1 commit into
mainfrom
hmw-firstframe

Conversation

@MehdiMamas

Copy link
Copy Markdown
Owner

Closes #11

The fixture called SetForegroundWindow once. Windows' foreground-lock rules refuse that call from a background process, so the window reported HMW_NO_FOCUS. The fixture now taps Alt and retries up to 20 times, 50 ms apart. The protection assertions are unchanged.

Draft until first_frame passes on CI and locally.

@MehdiMamas
MehdiMamas marked this pull request as ready for review October 18, 2026 09:02
@MehdiMamas
MehdiMamas merged commit deb66cd into main Oct 18, 2026
3 checks passed
@MehdiMamas
MehdiMamas deleted the hmw-firstframe branch October 18, 2026 15:21
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.

first_frame test inactive_minimize_and_restore fails on main

1 participant