From f05249f30b732fc21a6bbd0a4c290760af340bef Mon Sep 17 00:00:00 2001 From: Marcel Hollerbach Date: Thu, 14 Dec 2017 11:42:46 +0100 Subject: [PATCH] efl_ui_focus_manager_calc: dont use sqrt We only need the order, not the exact value --- src/lib/elementary/efl_ui_focus_manager_calc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/elementary/efl_ui_focus_manager_calc.c b/src/lib/elementary/efl_ui_focus_manager_calc.c index b27e3c88ac..5b3b06c852 100644 --- a/src/lib/elementary/efl_ui_focus_manager_calc.c +++ b/src/lib/elementary/efl_ui_focus_manager_calc.c @@ -511,7 +511,7 @@ _calculate_node_indirection(Efl_Ui_Focus_Manager_Calc_Data *pd, Efl_Ui_Focus_Obj //calculate relative position of the nodes pos = _relative_position_rects(&rect, &op_rect); //calculate distance - distance = sqrt(pow(pos.x, 2) + pow(pos.y, 2)); + distance = pow(pos.x, 2) + pow(pos.y, 2); if (outside & outside_dir) {