summaryrefslogtreecommitdiff
path: root/ism/modules
diff options
context:
space:
mode:
authorInHong Han <inhong1.han@samsung.com>2018-05-15 19:16:27 +0900
committerInHong Han <inhong1.han@samsung.com>2018-05-17 08:30:42 +0000
commit7b7d460c1cb1be3cd7682fb1ff1a1cea4bf37924 (patch)
tree2010e3b340dc2a9e0e72410a6bc2c73e1dc0d1c9 /ism/modules
parent4451a94e11b01a02de858a1e67ee3ce721987e8d (diff)
downloadisf-7b7d460c1cb1be3cd7682fb1ff1a1cea4bf37924.tar.gz
isf-7b7d460c1cb1be3cd7682fb1ff1a1cea4bf37924.tar.bz2
isf-7b7d460c1cb1be3cd7682fb1ff1a1cea4bf37924.zip
Modifed to call the preedit_changed_cb without changing preedit_text
Change-Id: Ie8ce3b0768276809a90524c4d1494cd1e6a1b2e7
Diffstat (limited to 'ism/modules')
-rw-r--r--ism/modules/panelagent/wayland/wayland_panel_agent_module.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/ism/modules/panelagent/wayland/wayland_panel_agent_module.cpp b/ism/modules/panelagent/wayland/wayland_panel_agent_module.cpp
index 829e63c3..ab769863 100644
--- a/ism/modules/panelagent/wayland/wayland_panel_agent_module.cpp
+++ b/ism/modules/panelagent/wayland/wayland_panel_agent_module.cpp
@@ -1977,15 +1977,14 @@ wsc_send_preedit (WSCContextISF* wsc_ctx, int32_t cursor)
uint32_t index = strlen (wsc_ctx->preedit_str);
- wsc_send_preedit_style (wsc_ctx);
-
if (cursor > 0)
index = cursor;
/* Note : Since the current wayland_immodule implementation does not call
- * PREEDIT_CHANGED callback even when preedit_cursor gets updated, for now
- * we must update preedit_string also whenever preedit_cursor is updated.
- * So the below 2 lines cannot be called separately. */
+ * PREEDIT_CHANGED callback even when preedit_cursor or preedit_style gets updated, for now
+ * we must update preedit_string also whenever preedit_cursor or preedit_style is updated.
+ * So the below 3 lines cannot be called separately. */
+ wsc_send_preedit_style (wsc_ctx);
wl_input_method_context_preedit_cursor (wsc_ctx->im_ctx, index);
wl_input_method_context_preedit_string (wsc_ctx->im_ctx,
wsc_ctx->serial,