From: InHong Han Date: Tue, 7 Mar 2017 09:58:38 +0000 (+0900) Subject: Modified to compare show_req_ctx with text_input when calling the input_panel_hide() X-Git-Tag: accepted/tizen/3.0/common/20170308.133809~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2f082a4db66ea18d7f5dfe869d73956e71150f6a;p=platform%2Fcore%2Fuifw%2Fe-mod-tizen-wl-textinput.git Modified to compare show_req_ctx with text_input when calling the input_panel_hide() Change-Id: Ibe4f7246e960beaec1eedfad677f6acd40b986b0 --- diff --git a/src/e_mod_main.c b/src/e_mod_main.c index a8a5ca5..113aa77 100644 --- a/src/e_mod_main.c +++ b/src/e_mod_main.c @@ -1740,24 +1740,20 @@ _e_text_input_cb_resource_destroy(struct wl_resource *resource) return; } - if (g_text_input == text_input) + if (g_show_text_input == text_input) { if (text_input->input_panel_visibile) { - if (g_client) - _input_panel_hide(g_client, resource, EINA_TRUE); + _input_panel_hide(g_client, resource, EINA_TRUE); } - g_text_input = NULL; - g_client = NULL; + g_show_text_input = NULL; } - if (text_input == g_show_text_input) - g_show_text_input = NULL; - - if (g_text_input == NULL && text_input->input_panel_visibile) + if (g_text_input == text_input) { - _input_panel_hide(NULL, resource, EINA_TRUE); + g_text_input = NULL; + g_client = NULL; } EINA_LIST_FREE(text_input->input_methods, input_method)