Print the text input information in log 96/118896/1
authorJihoon Kim <jihoon48.kim@samsung.com>
Tue, 14 Mar 2017 11:30:28 +0000 (20:30 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Tue, 14 Mar 2017 11:30:28 +0000 (20:30 +0900)
Change-Id: If2a55039e5856d80e3a649c895623c32120e7bc2
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
src/e_mod_main.c

index 2807167cc0c2562bddcaaee7e4f2f567aeb751f8..d5af15355b981ead44f49aafab269546b13c4f4d 100644 (file)
@@ -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;