<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Jun 2, 2017 at 1:51 AM, adlo <span dir="ltr"><<a href="mailto:adloconwy@gmail.com" target="_blank">adloconwy@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">How do I write a program that spawns a simple compositor instance on a nested Wayland window using libweston-desktop and the Wayland-on-Wayland backend? What are the absolute basics needed to get something on the screen using libweston-desktop and the nested Wayland-on-Wayland backend?<br></blockquote><div><br></div><div>What about this? Am I on the right lines? What would I need to do to make my compositor appear in a window?</div><div><br></div><div><pre style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap"> struct weston_desktop *desktop;
struct wl_display *display;
struct weston_compositor *compositor;
const struct weston_desktop_api *api;
struct weston_layer base;
display = wl_display_create ();
compositor = weston_compositor_create (display, NULL);
weston_layer_init (&base, compositor);
weston_layer_set_position (&base, WESTON_LAYER_POSITION_BACKGROUND);
desktop = weston_desktop_create (compositor, api, NULL);</pre><pre style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap"><br></pre><pre style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap"><font face="arial, helvetica, sans-serif">Regards</font></pre><pre style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap"><font face="arial, helvetica, sans-serif">adlo</font></pre></div></div><br></div></div>