v3: Now IME is enabled if any of the child windows has an associated context. Not sure how to test what happens when a child window is from a different process.
I'm not completely sure that ImmSetActiveContext is called consistently on IME deactivation either
Neither of the functions seem like they are intended to be used by applications directly, and it does appear that `ImmSetActiveContext` is called consistently by Wine. All codepaths that do `NtUserAssociateInputContext` also follow up with two `ImmSetActiveContext` calls if the context changed. The only thing I can imagine is an application doing an NtUserAssociateInputContext manually, which would probably lead to all sorts of interesting things on it's own. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10007#note_128648