libweston: Advertise minor version 2 of zwp_linux_explicit_synchronization_v1

Although we already supported minor version 2 of the explicit sync
protocol, we couldn't advertise it previously, since it was not in any
released version of wayland-protocols. With the release of
wayland-protocols 1.18, which includes minor version 2 of this protocol,
and the recent update in weston to require 1.18, we can now safely
advertise minor version 2.

Signed-off-by: Alexandros Frantzis <alexandros.frantzis@collabora.com>
This commit is contained in:
Alexandros Frantzis 2019-08-02 16:29:57 +03:00 committed by Pekka Paalanen
parent a89266f422
commit 3802241c46
2 changed files with 3 additions and 5 deletions

View File

@ -245,11 +245,9 @@ bind_linux_explicit_synchronization(struct wl_client *client,
WL_EXPORT int
linux_explicit_synchronization_setup(struct weston_compositor *compositor)
{
/* TODO: Update to minor version 2 when the next version of
* wayland-protocols that contains it is released. */
if (!wl_global_create(compositor->wl_display,
&zwp_linux_explicit_synchronization_v1_interface,
1, compositor,
2, compositor,
bind_linux_explicit_synchronization))
return -1;

View File

@ -56,11 +56,11 @@ get_linux_explicit_synchronization(struct client *client)
}
assert(global_sync);
assert(global_sync->version == 1);
assert(global_sync->version == 2);
sync = wl_registry_bind(
client->wl_registry, global_sync->name,
&zwp_linux_explicit_synchronization_v1_interface, 1);
&zwp_linux_explicit_synchronization_v1_interface, 2);
assert(sync);
return sync;