summaryrefslogtreecommitdiff
path: root/weston-ivi-shell
diff options
context:
space:
mode:
authorNobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>2015-04-30 12:54:09 +0900
committerNobuhiko Tanibata <nobuhiko_tanibata@xddp.denso.co.jp>2015-08-28 09:08:16 +0900
commitf93f937b09a0b987144ebd287e5d38ead9ac9f97 (patch)
tree032d944a3cd3c724875b155db8a49f7e6b620fd1 /weston-ivi-shell
parentdc8452e58f6c121bbf54865a0783ea4c60992585 (diff)
downloadwayland-ivi-extension-f93f937b09a0b987144ebd287e5d38ead9ac9f97.tar.gz
ivi-controller: multi screens support
Previous code used fixed screen 0 only. The new code creates multi ivi-screens according to the number of screen from output_list. Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
Diffstat (limited to 'weston-ivi-shell')
-rw-r--r--weston-ivi-shell/src/ivi-controller-impl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/weston-ivi-shell/src/ivi-controller-impl.c b/weston-ivi-shell/src/ivi-controller-impl.c
index cf138cd..969ad34 100644
--- a/weston-ivi-shell/src/ivi-controller-impl.c
+++ b/weston-ivi-shell/src/ivi-controller-impl.c
@@ -1359,6 +1359,7 @@ static struct iviscreen*
create_screen(struct ivishell *shell, struct weston_output *output)
{
struct iviscreen *iviscrn;
+ static int id_counter = 0;
iviscrn = calloc(1, sizeof *iviscrn);
if (iviscrn == NULL) {
weston_log("no memory to allocate client screen\n");
@@ -1368,8 +1369,7 @@ create_screen(struct ivishell *shell, struct weston_output *output)
iviscrn->shell = shell;
iviscrn->output = output;
-// TODO : Only Single display
- iviscrn->layout_screen = ivi_extension_get_screen_from_id(shell, 0);
+ iviscrn->layout_screen = ivi_extension_get_screen_from_id(shell, id_counter++);
wl_list_init(&iviscrn->link);