From cccee714009bcda9d9984ab20dcc40e7280c8a42 Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Thu, 23 Feb 2017 07:50:43 +0900 Subject: [PATCH] Add context information in log Change-Id: I19a99b19154f6517dae7fb0cd061cb37bf546d51 Signed-off-by: Jihoon Kim --- ism/extras/wayland_immodule/wayland_imcontext.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/ism/extras/wayland_immodule/wayland_imcontext.c b/ism/extras/wayland_immodule/wayland_imcontext.c index f1794fd..b196932 100644 --- a/ism/extras/wayland_immodule/wayland_imcontext.c +++ b/ism/extras/wayland_immodule/wayland_imcontext.c @@ -1217,7 +1217,7 @@ commit_preedit(WaylandIMContext *imcontext) static Eina_Bool set_focus(Ecore_IMF_Context *ctx) { - LOGD(""); + LOGD("ctx : %p", ctx); WaylandIMContext *imcontext = (WaylandIMContext *)ecore_imf_context_data_get(ctx); if (!imcontext) return EINA_FALSE; @@ -1228,13 +1228,13 @@ set_focus(Ecore_IMF_Context *ctx) Ecore_Wl_Input *input = ecore_wl_window_keyboard_get(imcontext->window); if (!input) { - LOGW("Can't get Wl_Input\n"); + LOGW("ctx : %p, Can't get Wl_Input\n", ctx); return EINA_FALSE; } struct wl_seat *seat = ecore_wl_input_seat_get(input); if (!seat) { - LOGW("Can't get Wl_seat\n"); + LOGW("ctx : %p, Can't get Wl_seat\n", ctx); return EINA_FALSE; } @@ -1501,7 +1501,7 @@ get_purpose(Ecore_IMF_Context *ctx) static void _canvas_focus_in_cb(void *data, Evas *e, void *event_info) { - LOGD(""); + LOGD("ctx : %p", _focus_req_ctx); if (_focus_req_ctx) { set_focus(_focus_req_ctx); @@ -2594,14 +2594,16 @@ wayland_im_context_focus_in(Ecore_IMF_Context *ctx) _focused_ctx = ctx; // + LOGD ("ctx : %p. enable : %d, on demand : %d\n", ctx, + ecore_imf_context_input_panel_enabled_get(ctx), + ecore_imf_context_input_panel_show_on_demand_get (ctx)); + if (!set_focus(ctx)) { _focused_ctx = NULL; - LOGW("Fail to set focus!"); + LOGW("ctx : %p. Fail to set focus!", ctx); return; } - LOGD ("ctx : %p. on demand : %d\n", ctx, ecore_imf_context_input_panel_show_on_demand_get (ctx)); - WaylandIMContext *imcontext = (WaylandIMContext *)ecore_imf_context_data_get(ctx); if (imcontext && imcontext->input && imcontext->text_input) wl_text_input_set_return_key_disabled(imcontext->text_input, -- 2.7.4