Aric Stewart : winemac.drv: Send state change notifications from ImeSelect.
Alexandre Julliard
julliard at winehq.org
Tue Jun 11 16:54:06 CDT 2019
Module: wine
Branch: master
Commit: bb501445f1c97b4daddf4b048f3a7ce5b637093b
URL: https://source.winehq.org/git/wine.git/?a=commit;h=bb501445f1c97b4daddf4b048f3a7ce5b637093b
Author: Aric Stewart <aric at codeweavers.com>
Date: Mon Jun 10 08:02:02 2019 -0500
winemac.drv: Send state change notifications from ImeSelect.
Signed-off-by: Aric Stewart <aric at codeweavers.com>
Signed-off-by: Ken Thomases <ken at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/winemac.drv/ime.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/dlls/winemac.drv/ime.c b/dlls/winemac.drv/ime.c
index a071408..dabe665 100644
--- a/dlls/winemac.drv/ime.c
+++ b/dlls/winemac.drv/ime.c
@@ -630,6 +630,10 @@ BOOL WINAPI ImeSelect(HIMC hIMC, BOOL fSelect)
{
LPIMEPRIVATE myPrivate;
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->bInternalState = FALSE;
myPrivate->textfont = NULL;
More information about the wine-cvs
mailing list