From: Mike Blumenkrantz Date: Mon, 11 Mar 2019 15:45:18 +0000 (-0400) Subject: efl_ui_focus_composition: get geometry from canvas object not adapter X-Git-Tag: submit/tizen/20190318.043110~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6720666de385291cd19837c0375d41ae78a6a45c;p=platform%2Fupstream%2Fefl.git efl_ui_focus_composition: get geometry from canvas object not adapter the adapter has no geometry, so we must use the object from the adapter data ref D8287 Reviewed-by: Marcel Hollerbach Reviewed-by: Xavi Artigas Differential Revision: https://phab.enlightenment.org/D8295 --- diff --git a/src/lib/elementary/efl_ui_focus_composition.c b/src/lib/elementary/efl_ui_focus_composition.c index 62fd45c..eb35d45 100644 --- a/src/lib/elementary/efl_ui_focus_composition.c +++ b/src/lib/elementary/efl_ui_focus_composition.c @@ -234,7 +234,8 @@ _canvas_object_deleted(void *data, const Efl_Event *ev EINA_UNUSED) static void _new_geom(void *data, const Efl_Event *event EINA_UNUSED) { - Eina_Rect rect = efl_gfx_entity_geometry_get(data); + Efl_Ui_Focus_Composition_Adapter_Data *pd = efl_data_scope_get(data, EFL_UI_FOCUS_COMPOSITION_ADAPTER_CLASS); + Eina_Rect rect = efl_gfx_entity_geometry_get(pd->object); efl_event_callback_call(data, EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_GEOMETRY_CHANGED, &rect); }