From 1e44a46f17ce9d4316989cfe24c7f1a9bd5eab38 Mon Sep 17 00:00:00 2001 From: InHong Han Date: Mon, 23 Apr 2018 16:17:12 +0900 Subject: [PATCH] Prevent IME from automatically restarting in on-demand mode Change-Id: Id0af6bfa447a0a73ef000a49ba2cf79fbe2bd682 --- ism/src/isf_info_manager.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ism/src/isf_info_manager.cpp b/ism/src/isf_info_manager.cpp index bc330fd..3006799 100644 --- a/ism/src/isf_info_manager.cpp +++ b/ism/src/isf_info_manager.cpp @@ -2807,7 +2807,9 @@ public: m_helper_client_index.erase (uuid); m_helper_info_repository.erase (hiit); - if (restart && !m_ise_exiting) { + bool launch_ise_on_request = false; + launch_ise_on_request = scim_global_config_read (String (SCIM_GLOBAL_CONFIG_LAUNCH_ISE_ON_REQUEST), launch_ise_on_request); + if (restart && !m_ise_exiting && !launch_ise_on_request) { struct tms tiks_buf; static clock_t start_tiks = times (&tiks_buf); static double clock_tiks = (double)sysconf (_SC_CLK_TCK); -- 2.7.4