From 73b1ad1920e1bfe47613744e32b67f39108df2b1 Mon Sep 17 00:00:00 2001 From: Takahiro Shizuki Date: Mon, 22 Nov 2021 10:41:11 -0800 Subject: IME: Fix Multi-Window Duplicated First Character Fix problem with duplicated initial character when initiating or switching to new windows. This is done by updating our copies of state and modes from the new window when it receives WM_IME_SETCONTEXT message. This problem and fix are only for the Windows platform. --- intern/ghost/intern/GHOST_SystemWin32.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'intern/ghost') diff --git a/intern/ghost/intern/GHOST_SystemWin32.cpp b/intern/ghost/intern/GHOST_SystemWin32.cpp index 482f20f5cd1..5f5a89e2af1 100644 --- a/intern/ghost/intern/GHOST_SystemWin32.cpp +++ b/intern/ghost/intern/GHOST_SystemWin32.cpp @@ -1472,6 +1472,7 @@ LRESULT WINAPI GHOST_SystemWin32::s_wndProc(HWND hwnd, UINT msg, WPARAM wParam, case WM_IME_SETCONTEXT: { GHOST_ImeWin32 *ime = window->getImeInput(); ime->UpdateInputLanguage(); + ime->UpdateConversionStatus(hwnd); ime->CreateImeWindow(hwnd); ime->CleanupComposition(hwnd); ime->CheckFirst(hwnd); -- cgit v1.2.3