OAPAFUPI-330 Navigation with one finger is not equal to hover gesture
authorŁukasz Buśko <l.busko@samsung.com>
Tue, 13 Jan 2015 11:37:16 +0000 (12:37 +0100)
committerŁukasz Stanisławski <l.stanislaws@samsung.com>
Tue, 13 Jan 2015 13:27:39 +0000 (14:27 +0100)
Change-Id: Ia7bbb0bc07ed1f855d91dc1875a0eea15dce633b

src/navigator.c

index 51e28cf..c42a75b 100644 (file)
@@ -268,8 +268,9 @@ static void _focus_widget(Gesture_Info *info)
     target_widget = atspi_component_get_accessible_at_point(window_component, info->x_begin, info->y_begin, ATSPI_COORD_TYPE_WINDOW, &err);
     GERROR_CHECK(err)
     if (target_widget) {
-         _current_highlight_object_set(target_widget);
-         if (!flat_navi_context_current_set(context, target_widget))
+         if (flat_navi_context_current_set(context, target_widget))
+           _current_highlight_object_set(target_widget);
+         else
            ERROR("Hoveed object not found in window context");
     }
     else