discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=fe2c39086198a5023c6e378e4cc175658178397a

commit fe2c39086198a5023c6e378e4cc175658178397a
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Fri Jan 13 11:35:26 2017 -0500

    use geometry from comp object input rect when determining if coords 
intersect
    
    the rect geometry may be clipped, so use whatever the current geom is
---
 src/bin/e_comp_object.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/bin/e_comp_object.c b/src/bin/e_comp_object.c
index 76d8c9f..89324f8 100644
--- a/src/bin/e_comp_object.c
+++ b/src/bin/e_comp_object.c
@@ -3192,7 +3192,12 @@ e_comp_object_coords_inside_input_area(Evas_Object *obj, 
int x, int y)
    API_ENTRY EINA_FALSE;
 
    if (cw->input_obj)
-     return E_INSIDE(x, y, cw->x + cw->input_rect.x, cw->y + cw->input_rect.y, 
cw->input_rect.w, cw->input_rect.h);
+     {
+        int xx, yy, ww, hh;
+
+        evas_object_geometry_get(cw->input_obj, &xx, &yy, &ww, &hh);
+        return E_INSIDE(x, y, xx, yy, ww, hh);
+     }
    if (evas_object_pass_events_get(obj)) return EINA_FALSE;
    return E_INSIDE(x, y, cw->ec->x, cw->ec->y, cw->ec->w, cw->ec->h);
 }

-- 


Reply via email to