https://bugs.winehq.org/show_bug.cgi?id=57616
--- Comment #2 from Richard Thier u9vata@gmail.com --- I've built 9.20-1 from git (3a6e9365336304b4d7eb4d66aef959f67361cc1f) and checked that there are no issues with that version.
Checking around the codebase I have found this commit:
872f5c59d4b24557241dd9e567b42da031860f2c (*)
It talks about similar window state change handling and is later than 9.22 that I get from arch linux repo, so there is change this is already fixed and duplicate of this bug maybe:
https://bugs.winehq.org/show_bug.cgi?id=57577
Will check the latest master (see commit (*) above). If it still fails, I will git bisect to find where the issue gets introduced, but reading logs there is chance its solved in master.