https://bugs.winehq.org/show_bug.cgi?id=48121
Rémi Bernon rbernon@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |rbernon@codeweavers.com
--- Comment #10 from Rémi Bernon rbernon@codeweavers.com --- The code in winex11.drv is clearly incorrect w.r.t what Windows does, especially for focus gained through means other than mouse click (alt-tab or other), but I believe it's there for a reason. I don't remember exactly the kind of scenario we need it for, but removing it will break some cases.
FWIW, winex11.drv has a UseTakeFocus configuration option to not use WM_TAKE_FOCUS message, and that can be used to immediately give focus to windows, without sending this message (effectively doing what you suggests but without modifying the code). Proton uses that by default.