efl_ui_focus_manager_calc: only call next when the node is unexpected
authorMarcel Hollerbach <marcel@osg.samsung.com>
Thu, 12 Apr 2018 12:27:22 +0000 (14:27 +0200)
committerWonki Kim <wonki_.kim@samsung.com>
Mon, 28 May 2018 10:26:02 +0000 (19:26 +0900)
ref T6793

src/lib/elementary/efl_ui_focus_manager_calc.c

index 9802c9f..dad24f3 100644 (file)
@@ -1014,11 +1014,10 @@ static inline Node*
 _request_subchild_except(Node *n, Node *except)
 {
    n = _request_subchild(n);
-   do
+   while (n == except)
      {
         n = _next(n);
      }
-   while (n == except);
 
    return n;
 }