summaryrefslogtreecommitdiff
path: root/src/lib/elementary
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2020-04-18 10:46:37 +0200
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2020-04-28 11:00:49 +0200
commit1aed1cef5986d1c6b4bd61c454ed6da41c3ea95b (patch)
tree63841405224e54acfb453f0a8ce3994f2ff675d2 /src/lib/elementary
parent88dd66f3d15b6839a7e64a672c73e9d4a352c9aa (diff)
efl_ui_focus_manager_calc: correctly flag elements used
when setting the relation from two widgets a<->b a is used as well as b. This now correctly sets these flags. Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Differential Revision: https://phab.enlightenment.org/D11730
Diffstat (limited to 'src/lib/elementary')
-rw-r--r--src/lib/elementary/efl_ui_focus_manager_calc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/elementary/efl_ui_focus_manager_calc.c b/src/lib/elementary/efl_ui_focus_manager_calc.c
index 305b5092c5..173a663d79 100644
--- a/src/lib/elementary/efl_ui_focus_manager_calc.c
+++ b/src/lib/elementary/efl_ui_focus_manager_calc.c
@@ -402,6 +402,8 @@ dirty_flush_node(Efl_Ui_Focus_Manager *obj EINA_UNUSED, Efl_Ui_Focus_Manager_Cal
402 { 402 {
403 Efl_Ui_Focus_Direction direction = -1; 403 Efl_Ui_Focus_Direction direction = -1;
404 Efl_Ui_Focus_Graph_Calc_Direction_Result *res = NULL; 404 Efl_Ui_Focus_Graph_Calc_Direction_Result *res = NULL;
405 Node *partner;
406 Eina_List *n;
405 407
406 if (i == 0) 408 if (i == 0)
407 { 409 {
@@ -424,6 +426,9 @@ dirty_flush_node(Efl_Ui_Focus_Manager *obj EINA_UNUSED, Efl_Ui_Focus_Manager_Cal
424 res = &result.bottom; 426 res = &result.bottom;
425 } 427 }
426 428
429 EINA_LIST_FOREACH(res->relation, n, partner)
430 partner->unused = EINA_FALSE;
431
427 border_onedirection_set(node, direction, res->relation); 432 border_onedirection_set(node, direction, res->relation);
428 } 433 }
429 434