From 0c1c2711f323309c051f35ce6b9376bcd4eb2c03 Mon Sep 17 00:00:00 2001 From: Marcel Hollerbach Date: Mon, 12 Dec 2016 19:10:19 +0100 Subject: [PATCH] efl_ui_focus_manager: more debug information --- src/lib/elementary/efl_ui_focus_manager.c | 13 +++++++++++++ src/lib/elementary/efl_ui_focus_manager.eo | 2 ++ 2 files changed, 15 insertions(+) diff --git a/src/lib/elementary/efl_ui_focus_manager.c b/src/lib/elementary/efl_ui_focus_manager.c index c640450549..a3c390e5f8 100644 --- a/src/lib/elementary/efl_ui_focus_manager.c +++ b/src/lib/elementary/efl_ui_focus_manager.c @@ -1216,6 +1216,19 @@ _efl_ui_focus_manager_fetch(Eo *obj, Efl_Ui_Focus_Manager_Data *pd, Efl_Ui_Focus res->down = DIR_CLONE(EFL_UI_FOCUS_DIRECTION_DOWN); res->next = _next(n)->focusable; res->prev = _prev(n)->focusable; + switch(n->type) + { + case NODE_TYPE_LISTENER: + res->type = "listener"; + break; + case NODE_TYPE_ONLY_LOGICAL: + res->type = "logical"; + break; + case NODE_TYPE_NORMAL: + res->type = "normal"; + break; + } + res->parent = T(n).parent->focusable; res->redirect = n->type == NODE_TYPE_LISTENER ? n->data.listener.manager : NULL; #undef DIR_CLONE diff --git a/src/lib/elementary/efl_ui_focus_manager.eo b/src/lib/elementary/efl_ui_focus_manager.eo index e69c179de8..c1102848ac 100644 --- a/src/lib/elementary/efl_ui_focus_manager.eo +++ b/src/lib/elementary/efl_ui_focus_manager.eo @@ -16,6 +16,8 @@ struct Efl.Ui.Focus.Relations{ down : list; next : Efl.Ui.Focus.Object; prev : Efl.Ui.Focus.Object; + type : string; + parent : Efl.Ui.Focus.Object; redirect : Efl.Ui.Focus.Manager; }