d2af15eca59db66a518fe592becbc50a40abb19e
[AGL/meta-agl.git] / meta-agl-bsp / meta-ti / recipes-arago / weston / weston / 0001-ivi-shell-fix-TODO-which-expects-only-one-screen-in-.patch
1 From 93ceff13467e7fb1bee38c0ab6f587f5f99cc594 Mon Sep 17 00:00:00 2001
2 From: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
3 Date: Wed, 25 Nov 2015 23:36:09 +0900
4 Subject: [PATCH 1/7] ivi-shell: fix TODO which expects only one screen in the
5  system.
6
7 It just return the first screen found in screen list.
8
9 Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
10 Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
11 ---
12  ivi-shell/ivi-layout.c | 5 ++---
13  1 file changed, 2 insertions(+), 3 deletions(-)
14
15 diff --git a/ivi-shell/ivi-layout.c b/ivi-shell/ivi-layout.c
16 index a04076e..efc0da5 100644
17 --- a/ivi-shell/ivi-layout.c
18 +++ b/ivi-shell/ivi-layout.c
19 @@ -1484,9 +1484,8 @@ ivi_layout_get_screen_from_id(uint32_t id_screen)
20         struct ivi_layout_screen *iviscrn = NULL;
21  
22         wl_list_for_each(iviscrn, &layout->screen_list, link) {
23 -/* FIXME : select iviscrn from screen_list by id_screen */
24 -               return iviscrn;
25 -               break;
26 +               if (iviscrn->id_screen == id_screen)
27 +                       return iviscrn;
28         }
29  
30         return NULL;
31 -- 
32 2.4.5
33