winemac.drv: Send state change notifications from ImeSelect.

Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Ken Thomases <ken@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Aric Stewart 2019-06-10 08:02:02 -05:00 committed by Alexandre Julliard
parent f6b533700a
commit bb501445f1
1 changed files with 4 additions and 0 deletions

View File

@ -630,6 +630,10 @@ BOOL WINAPI ImeSelect(HIMC hIMC, BOOL fSelect)
{ {
LPIMEPRIVATE myPrivate; LPIMEPRIVATE myPrivate;
myPrivate = ImmLockIMCC(lpIMC->hPrivate); myPrivate = ImmLockIMCC(lpIMC->hPrivate);
if (myPrivate->bInComposition)
GenerateIMEMessage(hIMC, WM_IME_ENDCOMPOSITION, 0, 0);
if (myPrivate->bInternalState)
ImmSetOpenStatus(RealIMC(FROM_MACDRV), FALSE);
myPrivate->bInComposition = FALSE; myPrivate->bInComposition = FALSE;
myPrivate->bInternalState = FALSE; myPrivate->bInternalState = FALSE;
myPrivate->textfont = NULL; myPrivate->textfont = NULL;