From: InHong Han Date: Thu, 9 Feb 2017 07:35:21 +0000 (+0900) Subject: Fix IME does not show when other imcontext is deleted X-Git-Tag: submit/tizen_3.0/20170210.063600~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=768bd2ff07105228aeff7465da08315d12d5d9d5;p=platform%2Fcore%2Fuifw%2Fe-mod-tizen-wl-textinput.git Fix IME does not show when other imcontext is deleted If the application deletes other imcontext immediately after the input_panel_show request, the IME will not be shown by input_panel_hide event. So modified to compare focused_context with deleted_context. Change-Id: I19bd19e22bb4e571b928229603c2df2aea564356 --- diff --git a/src/e_mod_main.c b/src/e_mod_main.c index 76e3068..cc42234 100644 --- a/src/e_mod_main.c +++ b/src/e_mod_main.c @@ -1281,7 +1281,10 @@ _e_text_input_cb_input_panel_show(struct wl_client *client, struct wl_resource * static void _e_text_input_cb_input_panel_hide(struct wl_client *client, struct wl_resource *resource) { - _input_panel_hide(client, resource, EINA_FALSE); + E_Text_Input *text_input = wl_resource_get_user_data(resource); + + if (!g_text_input || (text_input && g_text_input == text_input)) + _input_panel_hide(client, resource, EINA_FALSE); } static void