From 3d1c9092ab3c4736e140f490d6ff167d5a4b031d Mon Sep 17 00:00:00 2001 From: InHong Han Date: Tue, 28 Dec 2021 16:49:03 +0900 Subject: [PATCH] Modified to call the remote_surrounding_text_cb when changing preedit text Change-Id: Ib08cbb3caee6370823f79cf9856ae84360a40a16 --- ism/modules/panelagent/wayland/wayland_panel_agent_module.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/ism/modules/panelagent/wayland/wayland_panel_agent_module.cpp b/ism/modules/panelagent/wayland/wayland_panel_agent_module.cpp index 238a6d7..58ab235 100644 --- a/ism/modules/panelagent/wayland/wayland_panel_agent_module.cpp +++ b/ism/modules/panelagent/wayland/wayland_panel_agent_module.cpp @@ -442,9 +442,6 @@ _wsc_im_ctx_cursor_position (void *data, struct wl_input_method_context *im_ctx, wsc_ctx->surrounding_cursor = cursor_pos; LOGD ("wsc_ctx->surrounding_cursor = %d", wsc_ctx->surrounding_cursor); g_info_manager->socket_update_cursor_position (cursor_pos); - - if (_TV) - remote_surrounding_get (wsc_ctx); } static void @@ -1886,6 +1883,9 @@ wsc_commit_preedit (WSCContextISF* wsc_ctx) free (wsc_ctx->preedit_str); wsc_ctx->preedit_str = strdup (""); + + if (_TV) + remote_surrounding_get (wsc_ctx); } static void @@ -2018,6 +2018,9 @@ wsc_send_preedit (WSCContextISF* wsc_ctx, int32_t cursor) wsc_ctx->serial, wsc_ctx->preedit_str, utf8_wcstombs (wsc_ctx->impl->commit_string).c_str ()); + + if (_TV) + remote_surrounding_get (wsc_ctx); } bool wsc_context_surrounding_get (WSCContextISF *wsc_ctx, char **text, int *cursor_pos) -- 2.7.4