mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 09:17:14 +00:00
imm32: Query the new input context in ImmAssociateContextEx / IACE_DEFAULT.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54991
This commit is contained in:
parent
542ccaaf84
commit
7ed63c30e8
|
@ -1038,6 +1038,7 @@ BOOL WINAPI ImmAssociateContextEx( HWND hwnd, HIMC new_himc, DWORD flags )
|
|||
ret = NtUserAssociateInputContext( hwnd, new_himc, flags );
|
||||
if (ret == AICR_FOCUS_CHANGED)
|
||||
{
|
||||
if (flags == IACE_DEFAULT) new_himc = NtUserGetWindowInputContext( hwnd );
|
||||
ImmSetActiveContext( hwnd, old_himc, FALSE );
|
||||
ImmSetActiveContext( hwnd, new_himc, TRUE );
|
||||
if (hwnd == GetFocus()) set_ime_ui_window_himc( new_himc );
|
||||
|
|
Loading…
Reference in a new issue