Browse Source

Fix missing ImmReleaseContext in default Win32 IME handler (#1932)

vby 7 years ago
parent
commit
3a42eb6620
1 changed files with 1 additions and 0 deletions
  1. 1 0
      imgui.cpp

+ 1 - 0
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);
         }
 }