diff options
author | crupest <crupest@outlook.com> | 2020-12-26 19:44:12 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-12-26 19:44:12 +0800 |
commit | acb7462be0b1d6b002a9e50a81b2b74fdc16a3b3 (patch) | |
tree | 13ab0b25d798683a2cd4b9df3b30acbd79f919fe /src/win/gui/InputMethod.cpp | |
parent | 715be3c81b96fcf87c7650501d71480a8743a984 (diff) | |
download | cru-acb7462be0b1d6b002a9e50a81b2b74fdc16a3b3.tar.gz cru-acb7462be0b1d6b002a9e50a81b2b74fdc16a3b3.tar.bz2 cru-acb7462be0b1d6b002a9e50a81b2b74fdc16a3b3.zip |
...
Diffstat (limited to 'src/win/gui/InputMethod.cpp')
-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."); |