From 173ba6af83303695b89d9a111f2a38ba06266985 Mon Sep 17 00:00:00 2001 From: Li Zhang Date: Thu, 23 Jun 2016 18:13:33 +0800 Subject: [PATCH] Update cursor position for auto capital function Change-Id: I15b68cb6ebe6728635f385593d5742bef38d7597 --- ism/modules/panelagent/wayland/wayland_panel_agent_module.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ism/modules/panelagent/wayland/wayland_panel_agent_module.cpp b/ism/modules/panelagent/wayland/wayland_panel_agent_module.cpp index e7dbd9b..d83272f 100644 --- a/ism/modules/panelagent/wayland/wayland_panel_agent_module.cpp +++ b/ism/modules/panelagent/wayland/wayland_panel_agent_module.cpp @@ -399,7 +399,8 @@ _wsc_im_ctx_cursor_position(void *data, struct wl_input_method_context *im_ctx, WSCContextISF *wsc_ctx = (WSCContextISF*)data; LOGD ("im_context = %p cursor_pos = %d\n", im_ctx, cursor_pos); - if (!wsc_ctx) return; + if (!wsc_ctx || !wsc_ctx->impl) return; + wsc_ctx->impl->cursor_pos = cursor_pos; caps_mode_check (wsc_ctx, EINA_FALSE, EINA_TRUE); g_info_manager->socket_update_cursor_position (cursor_pos); } -- 2.7.4