[Bf-blender-cvs] [ee0277271c2] blender-v3.0-release: IME: Fix Multi-Window Duplicated First Character

Takahiro Shizuki noreply at git.blender.org
Mon Nov 22 19:42:36 CET 2021


Commit: ee0277271c28c49eb18b049e7ef40a45e7fa7b22
Author: Takahiro Shizuki
Date:   Mon Nov 22 10:41:11 2021 -0800
Branches: blender-v3.0-release
https://developer.blender.org/rBee0277271c28c49eb18b049e7ef40a45e7fa7b22

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