downstream: ivi-shell: fix the layout-layer clearing in commit_list_screen()
authorJanos Kovacs <jankovac503@gmail.com>
Fri, 8 Aug 2014 23:53:56 +0000 (02:53 +0300)
committerJanos Kovacs <jankovac503@gmail.com>
Wed, 10 Dec 2014 14:28:04 +0000 (16:28 +0200)
commit8171dae26c2f7b9377d5861620be2bef06f44d5c
treeb4b15d5ab833908ef799e40de2b0111244ba245c
parentd0780b4418adf01f2a3506b0128d46ba438afa23
downstream: ivi-shell: fix the layout-layer clearing in commit_list_screen()

The original implementation initialized the list-head of
the layer's view_list and re-built the list by adding
the views of the visible surfaces to the list. This left
the layer_link of non-visible views to point to their
neighbours in the previous arrangement. This was no problem
as long as those views were not unmapped or destructed,
eg. a non-visible surface was removed.

The fixed version goes through on the list and initializes
the layer_link's making view destructions and unmappings safe.

Change-Id: I93b1398064228b5189782ac9030ff9515abd5283
Signed-off-by: Janos Kovacs <jankovac503@gmail.com>
ivi-shell/ivi-layout.c