atspi: do not demote an object that repeats event.
If an object is registered to elm_access, then do not demote its order even
though the object repeats event(repeat_events: 1) when _sort_by_repeat_events
function sorts object order.
User could add a rectangle to give accessibility. If the rectangle does not
repeat events, then it would be a problem when screen reader is off.
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
commit:
13c423e081c9ee3c1cac4a1d621479d421dd9294
Change-Id: I9348a10cdd3fde93c4a833b535c1c50cc7a859c5