forked from enlightenment/efl
tests/elm: fix event starter helper function to handle elm_win objects
this class implements EFL_CANVAS_SCENE_INTERFACE but is not an Evas, so the evas must still be fetched Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D9366
This commit is contained in:
parent
8659d342c2
commit
a9339bb7a6
|
@ -359,7 +359,7 @@ get_me_to_those_events(Eo *obj)
|
|||
{
|
||||
Evas *e = obj;
|
||||
|
||||
if (!efl_isa(obj, EFL_CANVAS_SCENE_INTERFACE))
|
||||
if ((!efl_isa(obj, EFL_CANVAS_SCENE_INTERFACE)) || efl_isa(obj, EFL_UI_WIN_CLASS))
|
||||
e = evas_object_evas_get(obj);
|
||||
evas_smart_objects_calculate(e);
|
||||
evas_event_callback_add(e, EVAS_CALLBACK_RENDER_POST, events_norendered, NULL);
|
||||
|
|
Loading…
Reference in New Issue