From d94ebc440dbb66ee17f1f2267d0bf163f4946390 Mon Sep 17 00:00:00 2001 From: Shinwoo Kim Date: Wed, 20 Dec 2017 14:19:38 +0530 Subject: [PATCH] atspi: use detail value of window activated signal The detail value of window activated signal is using for following cases (1) support "default_label" attribute of window (2) notify existing keyboard window. The keyboard window would exist always, once it shows. So if screen-reader turns off, and turn on again, there was no ATSPI signal. We are using 'activate' signal for this case to get the reference of keyboard window. And we are using detail value to reduce a call of IPC. orig: ba47f6bba8065c4ae1f4fd20e8d60ff1487be2b1 Change-Id: I36c5b96868233bdf7a162f4a1d23057ed9b2a05f Signed-off-by: Shilpa Singh --- src/lib/elementary/efl_ui_win.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c index 35fe4cb..0d726c8 100644 --- a/src/lib/elementary/efl_ui_win.c +++ b/src/lib/elementary/efl_ui_win.c @@ -4197,6 +4197,16 @@ _elm_win_atspi(Eina_Bool is_atspi) efl_access_window_activated_signal_emit(obj); efl_access_state_changed_signal_emit(obj, EFL_ACCESS_STATE_ACTIVE, EINA_TRUE); } + else + { + Efl_Access_Role role; + role = efl_access_role_get(obj); + if (role == EFL_ACCESS_ROLE_INPUT_METHOD_WINDOW) + { + efl_access_window_activated_signal_emit(obj); + efl_access_state_changed_signal_emit(obj, EFL_ACCESS_STATE_ACTIVE, EINA_TRUE); + } + } } elm_widget_atspi(obj, is_atspi); } -- 2.7.4