Do not send cursor position in the preedit status 26/102126/1
authorJihoon Kim <jihoon48.kim@samsung.com>
Mon, 5 Dec 2016 05:03:29 +0000 (14:03 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Mon, 5 Dec 2016 05:03:29 +0000 (14:03 +0900)
Change-Id: Ieb89155280817dd2932e572ae6513359038f1dd8
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
ism/extras/wayland_immodule/wayland_imcontext.c

index cec96d1..1ab67c3 100644 (file)
@@ -2548,8 +2548,11 @@ wayland_im_context_cursor_position_set (Ecore_IMF_Context *ctx,
 
         if (imcontext->input && imcontext->text_input) {
             LOGD ("ctx : %p, cursor pos : %d\n", ctx, cursor_pos);
-            wl_text_input_set_cursor_position (imcontext->text_input, cursor_pos);
+
             set_autocapital (ctx);
+
+            if (!imcontext->preedit_text)
+                wl_text_input_set_cursor_position (imcontext->text_input, cursor_pos);
         }
     }
 }