From ac5cec854eed61d400fce7ee7fd2711be5b8089f Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Fri, 8 May 2020 17:24:52 +0900 Subject: [PATCH] Fix issue IME does not show due to window focus issue ecore_wl2_window_activated_get() returns incorrect value in some case, so ecore_wl2_window_keyboard_get will be used like Tizen 5.0 Change-Id: I046c1bf42986b75252e07f842a47c55ae5fd9f1e Signed-off-by: Jihoon Kim --- ism/extras/wayland_immodule/wayland_imcontext.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/ism/extras/wayland_immodule/wayland_imcontext.c b/ism/extras/wayland_immodule/wayland_imcontext.c index 5951a5d..1ce130e 100644 --- a/ism/extras/wayland_immodule/wayland_imcontext.c +++ b/ism/extras/wayland_immodule/wayland_imcontext.c @@ -1401,12 +1401,8 @@ set_focus(Ecore_IMF_Context *ctx) return EINA_FALSE; } } - else if (!ecore_wl2_window_activated_get(imcontext->window)) { - LOGW("ctx : %p, window does not have focus", ctx); - return EINA_FALSE; - } - Ecore_Wl2_Input *input = ecore_wl2_window_input_get(imcontext->window); + Ecore_Wl2_Input *input = ecore_wl2_window_keyboard_get(imcontext->window); if (!input) { LOGW("ctx : %p, Can't get Wl_Input", ctx); return EINA_FALSE; @@ -1484,7 +1480,7 @@ set_focus_out(Ecore_IMF_Context *ctx) if (g_desired_key_rate > 0.0 && g_focused) { g_focused = EINA_FALSE; - Ecore_Wl2_Input *input = ecore_wl2_window_input_get(imcontext->window); + Ecore_Wl2_Input *input = ecore_wl2_window_keyboard_get(imcontext->window); if (input) { if (!ecore_wl2_input_keyboard_repeat_set (input, g_original_key_rate, g_original_key_delay)) { LOGE ("ecore_wl2_input_keyboard_repeat_set failed."); -- 2.7.4