From fba98d82100cbae61be0bc159fb97492c1927d88 Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Tue, 7 Nov 2017 15:03:26 +0900 Subject: [PATCH] Fix bug preedit changed event was called in mouse down and focus-in event Even though preedit was not changed, preedit changed event was called. Change-Id: Idc5d7f22bff56bbf454c1f2aa4ef6c4a6a460328 Signed-off-by: Jihoon Kim --- ism/extras/wayland_immodule/wayland_imcontext.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ism/extras/wayland_immodule/wayland_imcontext.c b/ism/extras/wayland_immodule/wayland_imcontext.c index c5e80f5..b7da7c1 100644 --- a/ism/extras/wayland_immodule/wayland_imcontext.c +++ b/ism/extras/wayland_immodule/wayland_imcontext.c @@ -1878,8 +1878,10 @@ text_input_preedit_cursor(void *data, { WaylandIMContext *imcontext = (WaylandIMContext *)data; - imcontext->pending_preedit.cursor = index; - _preedit_cursor_changed = EINA_TRUE; + if (imcontext->pending_preedit.cursor != index) { + imcontext->pending_preedit.cursor = index; + _preedit_cursor_changed = EINA_TRUE; + } } static xkb_mod_index_t -- 2.7.4