Fix getting top object in comp canvas

Correctly return the top non-repeating event window

ref 1a982fd72a
This commit is contained in:
Derek Foreman 2016-07-26 15:12:34 -05:00
parent 0122bc167c
commit a4a2f6b09e
1 changed files with 2 additions and 0 deletions

View File

@ -1485,12 +1485,14 @@ e_comp_top_window_at_xy_get(Evas_Coord x, Evas_Coord y)
if (!objs) return e_comp->ee_win;
EINA_LIST_FOREACH(objs, l, o)
{
if (evas_object_repeat_events_get(o)) continue;
ec = evas_object_data_get(o, "E_Client");
if (ec)
{
eina_list_free(objs);
return e_client_util_pwin_get(ec);
}
break;
}
eina_list_free(objs);
return e_comp->ee_win;