diff options
-rw-r--r-- | src/win/gui/InputMethod.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/win/gui/InputMethod.cpp b/src/win/gui/InputMethod.cpp index 0ef9a403..6643ea58 100644 --- a/src/win/gui/InputMethod.cpp +++ b/src/win/gui/InputMethod.cpp @@ -165,10 +165,7 @@ void WinInputMethodContext::DisableIME() { const auto hwnd = native_window_->GetWindowHandle(); AutoHIMC himc{hwnd}; - if (!::ImmNotifyIME(himc.Get(), NI_COMPOSITIONSTR, CPS_COMPLETE, 0)) { - log::TagWarn(log_tag, - u"Failed to complete composition before disable ime."); - } + ::ImmNotifyIME(himc.Get(), NI_COMPOSITIONSTR, CPS_COMPLETE, 0); if (::ImmAssociateContextEx(hwnd, nullptr, 0) == FALSE) { log::TagWarn(log_tag, u"Failed to disable ime."); |