forked from enlightenment/enlightenment
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
This commit is contained in:
parent
0fbef3b74e
commit
fe2c390861
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue