forked from enlightenment/efl
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:
parent
aabe29abc1
commit
991c2333ed
|
@ -234,8 +234,7 @@ _canvas_object_deleted(void *data, const Efl_Event *ev EINA_UNUSED)
|
||||||
static void
|
static void
|
||||||
_new_geom(void *data, const Efl_Event *event EINA_UNUSED)
|
_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_ui_focus_object_focus_geometry_get(data);
|
||||||
Eina_Rect rect = efl_gfx_entity_geometry_get(pd->object);
|
|
||||||
efl_event_callback_call(data, EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_GEOMETRY_CHANGED, &rect);
|
efl_event_callback_call(data, EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_GEOMETRY_CHANGED, &rect);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -46,7 +46,7 @@ EAPI Elm_Version *elm_version = &_version;
|
||||||
static void
|
static void
|
||||||
_focus_ev_redirect_cb(void *data, const Efl_Event *ev EINA_UNUSED)
|
_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);
|
efl_event_callback_call(data, EFL_UI_FOCUS_OBJECT_EVENT_FOCUS_GEOMETRY_CHANGED, &rect);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue