Revert "evas: consider clipper when handling mouse event" 33/129033/1
authorTaehyub Kim <taehyub.kim@samsung.com>
Fri, 12 May 2017 12:12:27 +0000 (21:12 +0900)
committerTaehyub Kim <taehyub.kim@samsung.com>
Fri, 12 May 2017 12:15:13 +0000 (21:15 +0900)
This reverts commit 36cf654e126d7328d54b61b103fe84236d9a5a4c.

Change-Id: I5c55eff7ccd0b81fbb523158722f3a8d622a3290

src/lib/evas/canvas/evas_events.c

index 93c118a..174a88a 100644 (file)
@@ -48,16 +48,6 @@ _evas_event_havemap_is_in_output_rect(Evas_Object *eo_obj, Evas_Object_Protected
    return 0;
 }
 
-static void
-clip_calc(Evas_Object_Protected_Data *obj, Evas_Coord_Rectangle *c)
-{
-   if (!obj) return;
-   RECTS_CLIP_TO_RECT(c->x, c->y, c->w, c->h,
-                      obj->cur->geometry.x, obj->cur->geometry.y,
-                      obj->cur->geometry.w, obj->cur->geometry.h);
-   clip_calc(obj->cur->clipper, c);
-}
-
 static Eina_List *
 _evas_event_object_list_raw_in_get(Evas *eo_e, Eina_List *in,
                                    const Eina_Inlist *list, Evas_Object *stop,
@@ -65,7 +55,6 @@ _evas_event_object_list_raw_in_get(Evas *eo_e, Eina_List *in,
 {
    Evas_Object *eo_obj;
    Evas_Object_Protected_Data *obj = NULL;
-   Evas_Coord_Rectangle c;
    int inside;
 
    if (!list) return in;
@@ -79,31 +68,6 @@ _evas_event_object_list_raw_in_get(Evas *eo_e, Eina_List *in,
              *no_rep = 1;
              return in;
           }
-        if (!obj->cur->visible) continue;
-
-        if (EINA_UNLIKELY((!!obj->map) && (obj->map->cur.map)
-                          && (obj->map->cur.usemap)))
-          c = obj->map->cur.map->normal_geometry;
-        else
-          {
-             if (obj->is_smart)
-               {
-                  Evas_Coord_Rectangle bounding_box = { 0, 0, 0, 0 };
-
-                  evas_object_smart_bounding_box_update(eo_obj, obj);
-                  evas_object_smart_bounding_box_get(eo_obj, &bounding_box, NULL);
-                  c = bounding_box;
-               }
-             else
-               {
-                  if (obj->clip.clipees) continue;
-                  c = obj->cur->geometry;
-               }
-          }
-        clip_calc(obj->cur->clipper, &c);
-
-        if ((!RECTS_INTERSECT(x, y, 1, 1, c.x, c.y, c.w, c.h))) continue;
-
         if (evas_event_passes_through(eo_obj, obj)) continue;
         if (!source)
           {