meson.build, src: update for weston 11
authorMarius Vlad <marius.vlad@collabora.com>
Thu, 1 Dec 2022 11:18:53 +0000 (13:18 +0200)
committerMarius Vlad <marius.vlad@collabora.com>
Mon, 11 Mar 2024 16:15:47 +0000 (18:15 +0200)
commit5921beed9208e15fa45c4bb719f667cdd50cd94c
treed7832a75a2d3654012d92caf8106ec3587576f25
parent9da16115b66545cd458729af23a690e907bd9094
meson.build, src: update for weston 11

Bump Weston library dependencies to work with Weston 11.0.0.

The following changes are needed to port the compositor to the
latest changes from libweston 11.

Specifically we now use weston_surface_unref() instead of
weston_surface_destroy(). The weston_head parameter is now needed
when creating an output in weston_compositor_create_output().

We now use weston_buffer_create_solid_rgba() instead of
weston_surface_set_color() to create our black curtain. A further
upstream updates has been added to include some of the shell-utils
wrapper but we'll get those in the next release of libweston.

Finally, in order to attach heads and enable the outputs, we need to
start from 1, rather than 0, and we now need lazy output placement for
multiple outputs, following basically what weston is doing.

Bug-AGL: SPEC-4578
Bug-AGL: SPEC-4617

Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: Ie4aa7bc09b99d85b6bda49437c5f4789012244e1
meson.build
src/compositor.c
src/ivi-compositor.h
src/screenshooter.c
src/shell.c