http://bugs.winehq.org/show_bug.cgi?id=57954
--- Comment #8 from zlice zlice@crtdrift.us --- Created attachment 78604 --> http://bugs.winehq.org/attachment.cgi?id=78604 suggested_focus_patch
i think i found out how/where to check for the race condition.
it seems like the 'active' vs 'focus' window is not in sync on some window managers and runs different/faster for whatever reason. but this can easily be checked for in `dlls/win32u/input.c : set_active_window()` at the front since 'active' should be 'focus' ??? i don't really know the distinction in windows api.
that said, i don't know why the original change was made for QS_SENDMESSAGE in the first place. so maybe limiting focus back to only QS_POSTMESSAGE is fine