diff options
author | crupest <crupest@outlook.com> | 2020-10-30 00:20:52 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-10-30 00:20:52 +0800 |
commit | 9c9a9c988b5d03642f931341c97b672d054936c8 (patch) | |
tree | b2f25a52b2572a5b692043ae1a746afa0650ac2c /src/win/gui/InputMethod.cpp | |
parent | 6aa2201797a9ed64ce0178215ae941d0c5f09579 (diff) | |
download | cru-9c9a9c988b5d03642f931341c97b672d054936c8.tar.gz cru-9c9a9c988b5d03642f931341c97b672d054936c8.tar.bz2 cru-9c9a9c988b5d03642f931341c97b672d054936c8.zip |
...
Diffstat (limited to 'src/win/gui/InputMethod.cpp')
-rw-r--r-- | src/win/gui/InputMethod.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/win/gui/InputMethod.cpp b/src/win/gui/InputMethod.cpp index d6f2146d..34638516 100644 --- a/src/win/gui/InputMethod.cpp +++ b/src/win/gui/InputMethod.cpp @@ -3,6 +3,7 @@ #include "cru/common/Logger.hpp" #include "cru/common/StringUtil.hpp" #include "cru/platform/Check.hpp" +#include "cru/platform/gui/DebugFlags.hpp" #include "cru/win/Exception.hpp" #include "cru/win/gui/Window.hpp" @@ -246,8 +247,10 @@ void WinInputMethodContext::OnWindowNativeMessage( case WM_IME_COMPOSITION: { composition_event_.Raise(nullptr); auto composition_text = GetCompositionText(); - log::TagDebug(log_tag, u"WM_IME_COMPOSITION composition text:\n{}", - composition_text); + if constexpr (DebugFlags::input_method) { + log::TagDebug(log_tag, u"WM_IME_COMPOSITION composition text:\n{}", + composition_text); + } if (message.l_param & GCS_RESULTSTR) { auto result_string = GetResultString(); text_event_.Raise(result_string); |