atspi: use detail value of window activated signal
authorShinwoo Kim <cinoo.kim@samsung.com>
Wed, 20 Dec 2017 08:49:38 +0000 (14:19 +0530)
committerWonki Kim <wonki_.kim@samsung.com>
Wed, 27 Dec 2017 08:58:44 +0000 (17:58 +0900)
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 <shilpa.singh@samsung.com>
src/lib/elementary/efl_ui_win.c

index 35fe4cb..0d726c8 100644 (file)
@@ -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);
      }