diff options
author | Jihoon Kim <jihoon48.kim@samsung.com> | 2020-04-03 15:27:02 +0900 |
---|---|---|
committer | Jihoon Kim <jihoon48.kim@samsung.com> | 2020-04-03 15:27:02 +0900 |
commit | 490560601590bdf009ef7ebc9843db7e072b6e64 (patch) | |
tree | a551cd72199c96affb2d24dd2603e2384ab7bfda /ism | |
parent | d6d3cb718ba75ebd2aeddff6d5a19aace532d151 (diff) | |
download | isf-490560601590bdf009ef7ebc9843db7e072b6e64.tar.gz isf-490560601590bdf009ef7ebc9843db7e072b6e64.tar.bz2 isf-490560601590bdf009ef7ebc9843db7e072b6e64.zip |
Change the way to check whether window has focus
Change-Id: Ie6f2eafc2eebac0e77f66d26ca9a308e3fd352d0
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
Diffstat (limited to 'ism')
-rw-r--r-- | ism/extras/wayland_immodule/wayland_imcontext.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ism/extras/wayland_immodule/wayland_imcontext.c b/ism/extras/wayland_immodule/wayland_imcontext.c index 5d73b074..802021f7 100644 --- a/ism/extras/wayland_immodule/wayland_imcontext.c +++ b/ism/extras/wayland_immodule/wayland_imcontext.c @@ -1389,7 +1389,13 @@ set_focus(Ecore_IMF_Context *ctx) return EINA_FALSE; } - if (!ecore_wl2_window_activated_get(imcontext->window)) { + if (imcontext->canvas) { + if (!evas_focus_state_get(imcontext->canvas)) { + LOGW("ctx : %p, canvas does not have focus", 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; } |