ivi-shell: fix TODO which expects only one screen in the system.

It just return the first screen found in screen list.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
This commit is contained in:
Nobuhiko Tanibata 2015-11-25 23:36:09 +09:00 committed by Pekka Paalanen
parent 7d967da8c2
commit 3e710d19fe
1 changed files with 2 additions and 3 deletions

View File

@ -1323,9 +1323,8 @@ ivi_layout_get_screen_from_id(uint32_t id_screen)
struct ivi_layout_screen *iviscrn = NULL;
wl_list_for_each(iviscrn, &layout->screen_list, link) {
/* FIXME : select iviscrn from screen_list by id_screen */
return iviscrn;
break;
if (iviscrn->id_screen == id_screen)
return iviscrn;
}
return NULL;