efl_ui_focus_manager: change the new order that gets set
authorMarcel Hollerbach <marcel-hollerbach@t-online.de>
Sat, 22 Apr 2017 08:41:07 +0000 (10:41 +0200)
committerMarcel Hollerbach <marcel-hollerbach@t-online.de>
Sat, 22 Apr 2017 16:30:08 +0000 (18:30 +0200)
commit23e7155840003ca91f72a5e99073f35f2ca6b293
tree1214ef51e95a72027aff2475ed1cd791df810fc3
parent29feb60d5086173cb7d9919aa4ff69d4ee9c8431
efl_ui_focus_manager: change the new order that gets set

Lets say there is a box with the following ordered children:
|Button|Box|Button|Box|Button| the two boxes do not have any children
at the time of the setup. The logic of the order_update will only order
the children like that:
|Button|Button|Button| Which is correct by that time, the two boxes dont
have any children.
Now the two boxes are also getting children, the order will not
selfupdate or anything so the logical chain would be:
|Button|Button|Button|Box|Box|. Which is wrong. To solve that the
manager keeps the order that got set last, and reapplies the order again
if something gets added to the parent where the order was set.

This should fix strange next / prev operations in ephoto.
src/lib/elementary/efl_ui_focus_manager.c