efl_ui_focus_manager_calc: move the debug output in there

reduces the load of debug messages, and the debug messages are now only
emitted from the manager that is not the redirect. And the real elements
that are focused are printed
This commit is contained in:
Marcel Hollerbach 2017-10-19 11:33:53 +02:00
parent 64529eac19
commit 2e26d7a6cf
1 changed files with 4 additions and 3 deletions

View File

@ -1288,8 +1288,6 @@ _efl_ui_focus_manager_calc_efl_ui_focus_manager_focus_set(Eo *obj, Efl_Ui_Focus_
node = node_get(obj, pd, focus);
if (!node) return;
F_DBG("Manager: %p focusing object %p %s", obj, focus, efl_class_name_get(focus));
if (node->type == NODE_TYPE_ONLY_LOGICAL && !node->redirect_manager)
{
Node *target = NULL;
@ -1325,6 +1323,8 @@ _efl_ui_focus_manager_calc_efl_ui_focus_manager_focus_set(Eo *obj, Efl_Ui_Focus_
}
}
F_DBG("Manager: %p focusing object %p %s", obj, node->focusable, efl_class_name_get(node->focusable));
if (eina_list_last_data_get(pd->focus_stack) == node)
{
//the correct one is focused
@ -1443,11 +1443,12 @@ _efl_ui_focus_manager_calc_efl_ui_focus_manager_move(Eo *obj EINA_UNUSED, Efl_Ui
{
candidate = efl_ui_focus_manager_request_move(obj, direction);
F_DBG("Manager: %p moved to %p %s in direction %d", obj, candidate, efl_class_name_get(candidate), direction);
if (candidate)
efl_ui_focus_manager_focus_set(obj, candidate);
}
F_DBG("Manager: %p moved to %p %s in direction %d", obj, candidate, efl_class_name_get(candidate), direction);
return candidate;
}