Changed the calling sequence to reduce the transfer time 68/175668/2
authorInHong Han <inhong1.han@samsung.com>
Wed, 11 Apr 2018 11:19:51 +0000 (20:19 +0900)
committerInHong Han <inhong1.han@samsung.com>
Thu, 12 Apr 2018 05:23:18 +0000 (14:23 +0900)
Change-Id: I63001fb255853838d1c74ad11e901d6bd853aed8

ism/extras/wayland_immodule/wayland_imcontext.c

index 97a0f6b..298c5bf 100644 (file)
@@ -1781,12 +1781,6 @@ show_input_panel(Ecore_IMF_Context *ctx)
     _input_panel_ctx = ctx;
     _active_context_canvas = ecore_imf_context_client_canvas_get(ctx);
 
-    if (imcontext->window) {
-        _active_context_window_id = ecore_wl2_window_id_get(imcontext->window);
-        imcontext->has_conformant = ecore_wl2_window_conformant_get(imcontext->window);
-    } else {
-        imcontext->has_conformant = EINA_FALSE;
-    }
     //
 
     // TIZEN_ONLY(20150715): Support input_panel_state_get
@@ -1862,6 +1856,13 @@ show_input_panel(Ecore_IMF_Context *ctx)
 
     wl_text_input_show_input_panel(imcontext->text_input);
 
+    if (imcontext->window) {
+        _active_context_window_id = ecore_wl2_window_id_get(imcontext->window);
+        imcontext->has_conformant = ecore_wl2_window_conformant_get(imcontext->window);
+    } else {
+        imcontext->has_conformant = EINA_FALSE;
+    }
+
     return EINA_TRUE;
 }