[atspi] do not response if ecore evas is obscured 06/104506/7
authorShinwoo Kim <cinoo.kim@samsung.com>
Tue, 13 Dec 2016 11:36:01 +0000 (20:36 +0900)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Fri, 16 Dec 2016 04:47:35 +0000 (20:47 -0800)
The homescreen could launch an application using 1 finger two tap.
If 1 finger tap is fired as soon as application launches,
the accessible_at_point_get works for obscured homescreen.

Change-Id: I385fc09e292350656a37a91cbc0b4cace82bb32b

src/lib/elm_atspi_bridge.c

index 3a40f93..fdea74d 100644 (file)
@@ -3486,6 +3486,12 @@ _component_get_accessible_at_point(const Eldbus_Service_Interface *iface EINA_UN
 
    ELM_ATSPI_OBJ_CHECK_OR_RETURN_DBUS_ERROR(obj, ELM_INTERFACE_ATSPI_COMPONENT_MIXIN, msg);
 
+   // TIZEN_ONLY(20161213) - do not response if ecore evas is obscured
+   const Ecore_Evas *ee = ecore_evas_ecore_evas_get(evas_object_evas_get(obj));
+   if (ecore_evas_obscured_get(ee))
+     return eldbus_message_error_new(msg, "org.freedesktop.DBus.Error.Failed", "ecore evas is obscured.");
+   //
+
    if (!eldbus_message_arguments_get(msg, "iiu", &x, &y, &coord_type))
      return eldbus_message_error_new(msg, "org.freedesktop.DBus.Error.InvalidArgs", "Invalid index type.");