diff options
author | Marcel Hollerbach <marcel@osg.samsung.com> | 2017-10-19 11:33:53 +0200 |
---|---|---|
committer | Marcel Hollerbach <marcel@osg.samsung.com> | 2017-10-19 15:20:59 +0200 |
commit | 2e26d7a6cf51abad9ae8faf1261614387daa3940 (patch) | |
tree | 0d29bb04c186c2ed53d266ca1be1faa165c2550b /src/lib/elementary | |
parent | 64529eac19ced56e85397e1dad3409857010edae (diff) |
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
Diffstat (limited to 'src/lib/elementary')
-rw-r--r-- | src/lib/elementary/efl_ui_focus_manager_calc.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/elementary/efl_ui_focus_manager_calc.c b/src/lib/elementary/efl_ui_focus_manager_calc.c index 033db69486..3232ca23ce 100644 --- a/src/lib/elementary/efl_ui_focus_manager_calc.c +++ b/src/lib/elementary/efl_ui_focus_manager_calc.c | |||
@@ -1288,8 +1288,6 @@ _efl_ui_focus_manager_calc_efl_ui_focus_manager_focus_set(Eo *obj, Efl_Ui_Focus_ | |||
1288 | node = node_get(obj, pd, focus); | 1288 | node = node_get(obj, pd, focus); |
1289 | if (!node) return; | 1289 | if (!node) return; |
1290 | 1290 | ||
1291 | F_DBG("Manager: %p focusing object %p %s", obj, focus, efl_class_name_get(focus)); | ||
1292 | |||
1293 | if (node->type == NODE_TYPE_ONLY_LOGICAL && !node->redirect_manager) | 1291 | if (node->type == NODE_TYPE_ONLY_LOGICAL && !node->redirect_manager) |
1294 | { | 1292 | { |
1295 | Node *target = NULL; | 1293 | Node *target = NULL; |
@@ -1325,6 +1323,8 @@ _efl_ui_focus_manager_calc_efl_ui_focus_manager_focus_set(Eo *obj, Efl_Ui_Focus_ | |||
1325 | } | 1323 | } |
1326 | } | 1324 | } |
1327 | 1325 | ||
1326 | F_DBG("Manager: %p focusing object %p %s", obj, node->focusable, efl_class_name_get(node->focusable)); | ||
1327 | |||
1328 | if (eina_list_last_data_get(pd->focus_stack) == node) | 1328 | if (eina_list_last_data_get(pd->focus_stack) == node) |
1329 | { | 1329 | { |
1330 | //the correct one is focused | 1330 | //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 | |||
1443 | { | 1443 | { |
1444 | candidate = efl_ui_focus_manager_request_move(obj, direction); | 1444 | candidate = efl_ui_focus_manager_request_move(obj, direction); |
1445 | 1445 | ||
1446 | F_DBG("Manager: %p moved to %p %s in direction %d", obj, candidate, efl_class_name_get(candidate), direction); | ||
1447 | |||
1446 | if (candidate) | 1448 | if (candidate) |
1447 | efl_ui_focus_manager_focus_set(obj, candidate); | 1449 | efl_ui_focus_manager_focus_set(obj, candidate); |
1448 | } | 1450 | } |
1449 | 1451 | ||
1450 | F_DBG("Manager: %p moved to %p %s in direction %d", obj, candidate, efl_class_name_get(candidate), direction); | ||
1451 | 1452 | ||
1452 | return candidate; | 1453 | return candidate; |
1453 | } | 1454 | } |