https://bugs.winehq.org/show_bug.cgi?id=41062
--- Comment #21 from Esme Povirk madewokherd@gmail.com --- I guess we could have winex11.drv try to detect when it gets a WM_TAKE_FOCUS from the WM because of mapping a window shown with SWP_NOACTIVATE. The only way I can think of to do that is to ping the WM after calling XMapWindow and ignore anything before getting a reply to the ping. I could imagine a WM breaking that though, or it might break something else that currently works with winex11.drv by coincidence.