weston: change wl_output of virtual display.
[AGL/meta-agl-devel.git] / meta-gstrecorder-rcar-gen3 / recipes-graphics / wayland / weston / 0002-main-change-remoting-initialization-timing.patch
1 From 0a0103f20437d9ed63b6cec500027a6d7bf6185f Mon Sep 17 00:00:00 2001
2 From: Harunobu Kurokawa <harunobu.kurokawa.dn@renesas.com>
3 Date: Mon, 20 May 2019 18:31:32 +0900
4 Subject: [PATCH] main: change remoting initialization timing
5
6 Signed-off-by: Tomohito Esaki <etom@igel.co.jp>
7 Signed-off-by: Harunobu Kurokawa <harunobu.kurokawa.dn@renesas.com>
8 ---
9  compositor/main.c | 7 ++++---
10  1 file changed, 4 insertions(+), 3 deletions(-)
11
12 diff --git a/compositor/main.c b/compositor/main.c
13 index 248298e..de7190b 100644
14 --- a/compositor/main.c
15 +++ b/compositor/main.c
16 @@ -2018,9 +2018,6 @@ load_drm_backend(struct weston_compositor *c,
17         ret = weston_compositor_load_backend(c, WESTON_BACKEND_DRM,
18                                              &config.base);
19  
20 -       /* remoting */
21 -       load_remoting(c, wc);
22 -
23         free(config.gbm_format);
24         free(config.seat_id);
25  
26 @@ -2664,6 +2661,10 @@ int main(int argc, char *argv[])
27         if (wet.init_failed)
28                 goto out;
29  
30 +       /* remoting: only support on drm-backend */
31 +       if (strstr(backend, "drm-backend.so"))
32 +               load_remoting(wet.compositor, config);
33 +
34         if (idle_time < 0)
35                 weston_config_section_get_int(section, "idle-time", &idle_time, -1);
36         if (idle_time < 0)
37 -- 
38 2.9.2
39