Update wayland-ivi-extension to 1.11.0
[AGL/meta-agl-demo.git] / recipes-graphics / wayland / weston / 0001-ivi-shell-fix-TODO-which-expects-only-one-screen-in-.patch
1 From ed7dbe7747f71ce718ba7cf43fe160c318405db7 Mon Sep 17 00:00:00 2001
2 From: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
3 Date: Mon, 9 Nov 2015 13:06:18 +0900
4 Subject: [PATCH] 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 ---
11  ivi-shell/ivi-layout.c | 5 ++---
12  1 file changed, 2 insertions(+), 3 deletions(-)
13
14 diff --git a/ivi-shell/ivi-layout.c b/ivi-shell/ivi-layout.c
15 index a04076e..efc0da5 100644
16 --- a/ivi-shell/ivi-layout.c
17 +++ b/ivi-shell/ivi-layout.c
18 @@ -1484,9 +1484,8 @@ ivi_layout_get_screen_from_id(uint32_t id_screen)
19         struct ivi_layout_screen *iviscrn = NULL;
20  
21         wl_list_for_each(iviscrn, &layout->screen_list, link) {
22 -/* FIXME : select iviscrn from screen_list by id_screen */
23 -               return iviscrn;
24 -               break;
25 +               if (iviscrn->id_screen == id_screen)
26 +                       return iviscrn;
27         }
28  
29         return NULL;
30 -- 
31 2.7.4
32