[Bf-blender-cvs] [73b1ad1920e] master: IME: Fix Multi-Window Duplicated First Character

Takahiro Shizuki noreply at git.blender.org
Mon Nov 22 19:44:47 CET 2021


Commit: 73b1ad1920e1bfe47613744e32b67f39108df2b1
Author: Takahiro Shizuki
Date:   Mon Nov 22 10:41:11 2021 -0800
Branches: master
https://developer.blender.org/rB73b1ad1920e1bfe47613744e32b67f39108df2b1

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.

===================================================================

M	intern/ghost/intern/GHOST_SystemWin32.cpp

===================================================================

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);



More information about the Bf-blender-cvs mailing list