From 74e9172c78c54f2c91cf1aa3992651e334c99080 Mon Sep 17 00:00:00 2001 From: Wonkeun Oh Date: Mon, 2 Nov 2015 19:32:04 +0900 Subject: [PATCH] Revert "Reduce the elapsed time in ecore_imf_context_add ()" When isf-panel-efl terminated, scim-helper-launcher doesn't launch even though requesting focus-in or show due to original this path. Change-Id: I24f97cce3ca9e504e8178597d42a4c1bf5fa0f2d --- ism/extras/efl_immodule/isf_imf_context.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/ism/extras/efl_immodule/isf_imf_context.cpp b/ism/extras/efl_immodule/isf_imf_context.cpp index c58ad96..9dbf825 100644 --- a/ism/extras/efl_immodule/isf_imf_context.cpp +++ b/ism/extras/efl_immodule/isf_imf_context.cpp @@ -1188,6 +1188,10 @@ isf_imf_context_new (void) } context_scim->id = _context_count++; +#if !(ENABLE_LAZY_LAUNCH) + scim_initialize (); +#endif + return context_scim; } @@ -1413,9 +1417,11 @@ isf_imf_context_focus_in (Ecore_IMF_Context *ctx) if (!context_scim) return; - SCIM_DEBUG_FRONTEND(1) << __FUNCTION__<< "(" << context_scim->id << ")...\n"; - +#if ENABLE_LAZY_LAUNCH scim_initialize (); +#endif + + SCIM_DEBUG_FRONTEND(1) << __FUNCTION__<< "(" << context_scim->id << ")...\n"; if (_focused_ic) { if (_focused_ic == context_scim) { -- 2.7.4