https://bugs.winehq.org/show_bug.cgi?id=54594
--- Comment #2 from RĂ©mi Bernon rbernon@codeweavers.com --- I can finally reproduce it locally, and I believe that it is a race condition in fvwm. The WM sends WM_TAKE_FOCUS messages to us, with some timestamp to use for the reply, but quickly after calls XSetInputFocus on its own desktop window with CurrentTime.
Depending on how quickly we reply to the WM_TAKE_FOCUS message, this ends up with fvwm stealing our focus and we get a FocusOut even right after the FocusIn event. We then set focus to desktop, as we should, and wineserver stops sending input to the dinput messages window.