https://bugs.winehq.org/show_bug.cgi?id=51526
--- Comment #8 from Lars Loe madbyte@tuta.io --- Thanks for digging into the issue!
I can confirm that clearing "Allow the window manager to control the windows" in winecfg helps and let the game launch normally.
Unfortunately the sleep code in winex11.drv/event.c doesn't seem to execute at all on my system (Manjaro, KDE Plasma, X11, AMDGPU). I also tried to change the sleep time to something ridiculous like 25000, but the system doesn't seem to wait when launching the game. I also tried to add a WARN to see if the text appears in the log but that didn't work either.
I also tried your latest patch to window.c and it works for me, the game launches without issues.