mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 03:08:19 +00:00
imm32: Use IMM context keyboard layout when possible.
This commit is contained in:
parent
18d9ca872a
commit
9e09982847
|
@ -763,7 +763,7 @@ HIMC WINAPI ImmCreateContext(void)
|
|||
return 0;
|
||||
}
|
||||
new_context->threadID = GetCurrentThreadId();
|
||||
SendMessageW(GetFocus(), WM_IME_SELECT, TRUE, (LPARAM)GetKeyboardLayout(0));
|
||||
SendMessageW(GetFocus(), WM_IME_SELECT, TRUE, (LPARAM)new_context->immKbd);
|
||||
|
||||
new_context->immKbd->uSelected++;
|
||||
TRACE("Created context %p\n",new_context);
|
||||
|
@ -783,7 +783,7 @@ static BOOL IMM_DestroyContext(HIMC hIMC)
|
|||
|
||||
data->immKbd->uSelected --;
|
||||
data->immKbd->pImeSelect(hIMC, FALSE);
|
||||
SendMessageW(data->IMC.hWnd, WM_IME_SELECT, FALSE, (LPARAM)GetKeyboardLayout(0));
|
||||
SendMessageW(data->IMC.hWnd, WM_IME_SELECT, FALSE, (LPARAM)data->immKbd);
|
||||
|
||||
ImmDestroyIMCC(data->IMC.hCompStr);
|
||||
ImmDestroyIMCC(data->IMC.hCandInfo);
|
||||
|
|
Loading…
Reference in a new issue