jihoon pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=988fe37232c62280400d574cd4f4750a93a6e484

commit 988fe37232c62280400d574cd4f4750a93a6e484
Author: Jihoon Kim <jihoon48....@samsung.com>
Date:   Tue May 17 08:34:17 2016 +0900

    ecore_imf/wayland: Change sequence to call preedit changed and end callback
    
    preedit changed and end callback should be called before commit callback
---
 src/modules/ecore_imf/wayland/wayland_imcontext.c | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/src/modules/ecore_imf/wayland/wayland_imcontext.c 
b/src/modules/ecore_imf/wayland/wayland_imcontext.c
index 7b6517a..c852c56 100644
--- a/src/modules/ecore_imf/wayland/wayland_imcontext.c
+++ b/src/modules/ecore_imf/wayland/wayland_imcontext.c
@@ -336,6 +336,15 @@ commit_preedit(WaylandIMContext *imcontext)
    if (!imcontext->ctx)
      return;
 
+   ecore_imf_context_preedit_changed_event_add(imcontext->ctx);
+   ecore_imf_context_event_callback_call(imcontext->ctx,
+                                         ECORE_IMF_CALLBACK_PREEDIT_CHANGED,
+                                         NULL);
+
+   ecore_imf_context_preedit_end_event_add(imcontext->ctx);
+   ecore_imf_context_event_callback_call(imcontext->ctx,
+                                         ECORE_IMF_CALLBACK_PREEDIT_END, NULL);
+
    ecore_imf_context_commit_event_add(imcontext->ctx, 
                                       imcontext->preedit_commit);
    ecore_imf_context_event_callback_call(imcontext->ctx, 
@@ -654,15 +663,6 @@ text_input_leave(void                 *data,
    /* clear preedit */
    commit_preedit(imcontext);
    clear_preedit(imcontext);
-
-   ecore_imf_context_preedit_changed_event_add(imcontext->ctx);
-   ecore_imf_context_event_callback_call(imcontext->ctx, 
-                                         ECORE_IMF_CALLBACK_PREEDIT_CHANGED, 
-                                         NULL);
-
-   ecore_imf_context_preedit_end_event_add(imcontext->ctx);
-   ecore_imf_context_event_callback_call(imcontext->ctx, 
-                                         ECORE_IMF_CALLBACK_PREEDIT_END, NULL);
 }
 
 static void

-- 


Reply via email to