From 8f17f6bf9027808de48171d2c7ecc2a9668cb689 Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Tue, 14 Mar 2017 20:30:28 +0900 Subject: [PATCH] Print the text input information in log Change-Id: If2a55039e5856d80e3a649c895623c32120e7bc2 Signed-off-by: Jihoon Kim --- src/e_mod_main.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/e_mod_main.c b/src/e_mod_main.c index 2807167..d5af153 100644 --- a/src/e_mod_main.c +++ b/src/e_mod_main.c @@ -1090,6 +1090,8 @@ _e_mod_ecore_key_down_cb(void *data, int type, void *event) static void _e_text_input_deactivate(E_Text_Input *text_input, E_Input_Method *input_method, Eina_Bool need_focus_in) { + LOGD("text_input : %p\n", text_input); + if (text_input == g_text_input) { g_text_input = NULL; @@ -1158,6 +1160,8 @@ _e_text_input_cb_activate(struct wl_client *client, struct wl_resource *resource input_method = wl_resource_get_user_data(g_input_method->resource); EINA_SAFETY_ON_NULL_GOTO(input_method, err); + LOGD("text_input : %p\n", text_input); + old = input_method->input; if (old == text_input) return; @@ -1165,7 +1169,8 @@ _e_text_input_cb_activate(struct wl_client *client, struct wl_resource *resource if (old) { _e_text_input_deactivate(old, input_method, EINA_TRUE); - if (g_input_panel_state == E_INPUT_PANEL_STATE_DID_SHOW || g_input_panel_state == E_INPUT_PANEL_STATE_WILL_SHOW) + if (g_input_panel_state == E_INPUT_PANEL_STATE_DID_SHOW || + g_input_panel_state == E_INPUT_PANEL_STATE_WILL_SHOW) { g_old_text_input = old; } @@ -1309,10 +1314,11 @@ _e_text_input_method_create_context(struct wl_client *client, E_Input_Method *in static void _e_text_input_cb_input_panel_show(struct wl_client *client, struct wl_resource *resource) { - LOGD(""); E_Text_Input *text_input = wl_resource_get_user_data(resource); E_Input_Method *input_method = NULL; + LOGD("text_input : %p\n", text_input); + if (!text_input) { WTI_WARNING(resource, @@ -1381,6 +1387,8 @@ _e_text_input_cb_input_panel_hide(struct wl_client *client, struct wl_resource * E_Text_Input *text_input = wl_resource_get_user_data(resource); Eina_Bool hide_allowed = EINA_FALSE; + LOGD("text_input : %p\n", text_input); + if (!g_text_input || (text_input && g_show_text_input == text_input)) hide_allowed = EINA_TRUE; -- 2.7.4