[atspi] do not response if ecore evas is obscured
authorShinwoo Kim <cinoo.kim@samsung.com>
Tue, 13 Dec 2016 11:36:01 +0000 (20:36 +0900)
committerWonki Kim <wonki_.kim@samsung.com>
Mon, 2 Jan 2017 05:37:09 +0000 (14:37 +0900)
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 3a40f936511a30f82b814b3600a4a16d88597c89..fdea74d27553451bfbf9dd1c541b9850293506c6 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.");