On Wed Jun 26 20:50:52 2024 +0000, Fabian Maurer wrote:
FWIW, I updated the timeout to be 1 second. The [Test](https://testbot.winehq.org/JobDetails.pl?Key=146588) for that didn't have issues. I also reran the test a few times: [Retry 1](https://testbot.winehq.org/JobDetails.pl?Key=146582) [Retry 2](https://testbot.winehq.org/JobDetails.pl?Key=146583) [Retry 3](https://testbot.winehq.org/JobDetails.pl?Key=146584) (failed once) [Retry 4](https://testbot.winehq.org/JobDetails.pl?Key=146585) [Retry 5](https://testbot.winehq.org/JobDetails.pl?Key=146586) [Retry 6](https://testbot.winehq.org/JobDetails.pl?Key=146587) The failure is very rare. Should I just mark it flaky, or retry a bunch of times with SetForegroundWindow?
Try SetForegroundWindow() first. If it still happens then mark it as flaky.