forked from enlightenment/enlightenment
Fix getting top object in comp canvas
Correctly return the top non-repeating event window
ref 1a982fd72a
This commit is contained in:
parent
0122bc167c
commit
a4a2f6b09e
|
@ -1485,12 +1485,14 @@ e_comp_top_window_at_xy_get(Evas_Coord x, Evas_Coord y)
|
||||||
if (!objs) return e_comp->ee_win;
|
if (!objs) return e_comp->ee_win;
|
||||||
EINA_LIST_FOREACH(objs, l, o)
|
EINA_LIST_FOREACH(objs, l, o)
|
||||||
{
|
{
|
||||||
|
if (evas_object_repeat_events_get(o)) continue;
|
||||||
ec = evas_object_data_get(o, "E_Client");
|
ec = evas_object_data_get(o, "E_Client");
|
||||||
if (ec)
|
if (ec)
|
||||||
{
|
{
|
||||||
eina_list_free(objs);
|
eina_list_free(objs);
|
||||||
return e_client_util_pwin_get(ec);
|
return e_client_util_pwin_get(ec);
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
eina_list_free(objs);
|
eina_list_free(objs);
|
||||||
return e_comp->ee_win;
|
return e_comp->ee_win;
|
||||||
|
|
Loading…
Reference in New Issue