atspi: fix compare func to find object at point 66/132466/2
authorShinwoo Kim <cinoo.kim@samsung.com>
Mon, 5 Jun 2017 10:36:19 +0000 (19:36 +0900)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>
Mon, 12 Jun 2017 04:17:17 +0000 (04:17 +0000)
commit720eaed80095754cc5e78d5b8a98026f2e8964be
treeda8ba2c3d82ebe9c4686c5d9825f184d43687fe1
parenta27b03f0c9acb346525e209e6c3fc37bac28e576
atspi: fix compare func to find object at point

The compare function(_sort_by_repeat_events) does not change if two objects
repeat event(repeat_events: 1) even though the second object is registered to
elm_access. In this case the object could be demoted in the list, and it is not
possilbe to find the object by screen reader.

The following is the problem case:

[Before Sorting]
1. Object A (repeat_events: 1)
2. Object B (repeat_events: 1, is registred to elm_access)
3. Object C (repeat_events: 1)
4. Object D (repeat_events: 0)
5. Object E (repeat_events: 0)

[After Sorting] D - E - A - B -C

Change-Id: I5c566252507d8d6c5aac5759588cdd9e1468cd3e
src/lib/elm_widget.c