efl_ui_focus_object: fixup properties that are used for event infos.

Summary:
those are the completly wrong properties, please be carefull with this.
There is a major difference between focus_geometry and geometry on the
entity. In a viewport for example its the viewport itself - the bars at
the side. Additionally, not every focus object is a efl.gfx.entity.

this fixes a giant amount of errors when you try to test terminology,
emixer, toolbar tests or something like this.

fixup 1d9fef8da6

Reviewers: cedric, segfaultxavi, zmike

Reviewed By: cedric

Subscribers: #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D8300
This commit is contained in:
Marcel Hollerbach 2019-03-11 17:47:05 -04:00 committed by Mike Blumenkrantz
parent aabe29abc1
commit 991c2333ed
2 changed files with 2 additions and 3 deletions

View File

@ -234,8 +234,7 @@ _canvas_object_deleted(void *data, const Efl_Event *ev EINA_UNUSED)
static void
_new_geom(void *data, const Efl_Event *event EINA_UNUSED)
{
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);
Eina_Rect rect = efl_ui_focus_object_focus_geometry_get(data);
efl_event_callback_call(data, EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_GEOMETRY_CHANGED, &rect);
}

View File

@ -46,7 +46,7 @@ EAPI Elm_Version *elm_version = &_version;
static void
_focus_ev_redirect_cb(void *data, const Efl_Event *ev EINA_UNUSED)
{
Eina_Rect rect = efl_gfx_entity_geometry_get(data);
Eina_Rect rect = efl_ui_focus_object_focus_geometry_get(data);
efl_event_callback_call(data, EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_GEOMETRY_CHANGED, &rect);
}