From 2f082a4db66ea18d7f5dfe869d73956e71150f6a Mon Sep 17 00:00:00 2001 From: InHong Han Date: Tue, 7 Mar 2017 18:58:38 +0900 Subject: [PATCH] Modified to compare show_req_ctx with text_input when calling the input_panel_hide() Change-Id: Ibe4f7246e960beaec1eedfad677f6acd40b986b0 --- src/e_mod_main.c | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) 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) -- 2.7.4