From 3a42eb662026e793461d4ca31e0d3bba54cacb30 Mon Sep 17 00:00:00 2001 From: vby Date: Sun, 8 Jul 2018 21:24:12 +0800 Subject: [PATCH] Fix missing ImmReleaseContext in default Win32 IME handler (#1932) --- imgui.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/imgui.cpp b/imgui.cpp index e8e2290e..d18e1ac2 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -13826,6 +13826,7 @@ static void ImeSetInputScreenPosFn_DefaultImpl(int x, int y) cf.ptCurrentPos.y = y; cf.dwStyle = CFS_FORCE_POSITION; ::ImmSetCompositionWindow(himc, &cf); + ::ImmReleaseContext(hwnd, himc); } }