Skip to content

Commit

Permalink
imm32: Query the new input context in ImmAssociateContextEx / IACE_DE…
Browse files Browse the repository at this point in the history
  • Loading branch information
rbernon authored and julliard committed May 30, 2023
1 parent 542ccaa commit 7ed63c3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dlls/imm32/imm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit 7ed63c3

Please sign in to comment.