From 7384700dbdc8f8b8bd6c84d0cb56408ece8dbfb6 Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Mon, 28 Nov 2016 19:08:57 +0900 Subject: [PATCH] Fix bug not to deliver imdata in show Change-Id: I8d77920cfdadcb5fdda70ceac8ec750e6facd7ab Signed-off-by: Jihoon Kim --- ism/modules/panelagent/wayland/wayland_panel_agent_module.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ism/modules/panelagent/wayland/wayland_panel_agent_module.cpp b/ism/modules/panelagent/wayland/wayland_panel_agent_module.cpp index e5758b6..676f52b 100644 --- a/ism/modules/panelagent/wayland/wayland_panel_agent_module.cpp +++ b/ism/modules/panelagent/wayland/wayland_panel_agent_module.cpp @@ -346,6 +346,16 @@ _wsc_im_ctx_input_panel_data (void *data, struct wl_input_method_context *im_ctx LOGD ("im_context = %p input panel data = %s len = %d\n", im_ctx, input_panel_data, input_panel_data_length); if (!wsc_ctx) return; + if (wsc_ctx->impl) { + if (wsc_ctx->impl->imdata) { + free(wsc_ctx->impl->imdata); + } + + wsc_ctx->impl->imdata = calloc(1, input_panel_data_length); + memcpy(wsc_ctx->impl->imdata, input_panel_data, input_panel_data_length); + wsc_ctx->impl->imdata_size = input_panel_data_length; + } + isf_wsc_context_input_panel_imdata_set (wsc_ctx, (void *)input_panel_data, input_panel_data_length); } -- 2.7.4