ivi-shell: avoid inserting a ivi_layer to multiple screens.
authorNobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
Wed, 25 Nov 2015 14:36:46 +0000 (23:36 +0900)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Fri, 27 Nov 2015 13:03:29 +0000 (15:03 +0200)
commit77b0ee18a2e02e6084ece3d04914f7e8f4c6dcb9
treee01b9f6dbd1ff794efea137e26f00a4beedf2915
parent3e710d19fe663c7fca39053eb06b5667adabd7b0
ivi-shell: avoid inserting a ivi_layer to multiple screens.

In just previous wl_list_for_each_safe, list of layer in a screen is
cleaned up. And then, the list is re-constructed from
pending.layer_list.

In this re-construction, if order.link of a layer were inserted into a
screen whose number is later one of current screen, the order.link will
inserted into layer_list of two screens. This shall be avoided.

However, if we want to implement a feature to allow a layer to be added
to multiple screens. A layer shall have several order.link per screens.
So, I marked here as TODO.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
ivi-shell/ivi-layout.c