From: Wonkeun Oh Date: Thu, 18 May 2017 05:57:16 +0000 (+0900) Subject: Send the response event in the _cb_filter_key_event function if there is no activated... X-Git-Tag: submit/tizen/20170602.083652~2^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4af6118e6cca7cc11bc97ae3ad4bffa3a3b15905;p=platform%2Fcore%2Fuifw%2Fe-mod-tizen-wl-textinput.git Send the response event in the _cb_filter_key_event function if there is no activated input_method. If not, it spend 2 seconds per each key event and then it cause the ANR timeout or deadlock. Becuase application process(Immodule) will wait for response message for the synchronous communication in the filter_key_event function. Change-Id: I9c83093d72522b58052b6005e0106240c2ab5312 --- diff --git a/src/e_mod_main.c b/src/e_mod_main.c index 6a07ed9..9cee61f 100644 --- a/src/e_mod_main.c +++ b/src/e_mod_main.c @@ -1716,9 +1716,21 @@ _e_text_input_cb_filter_key_event(struct wl_client *client EINA_UNUSED, struct w input_method = wl_resource_get_user_data(g_input_method->resource); if (input_method && input_method->context && input_method->context->resource) - wl_input_method_context_send_filter_key_event(input_method->context->resource, - serial, time, keyname, state, modifiers, - dev_name, dev_class, dev_subclass); + { + wl_input_method_context_send_filter_key_event(input_method->context->resource, + serial, time, keyname, state, modifiers, + dev_name, dev_class, dev_subclass); + } + else + { + if (text_input->resource) + wl_text_input_send_filter_key_event_done(text_input->resource, serial, false); + + WTI_WARNING(resource, + WL_DISPLAY_ERROR_INVALID_OBJECT, + "No Input Method"); + } + } static void