Commit 3802241c authored by Alexandros Frantzis's avatar Alexandros Frantzis Committed by Pekka Paalanen

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's avatarAlexandros Frantzis <alexandros.frantzis@collabora.com>
parent a89266f4
Pipeline #53139 passed with stages
in 1 minute and 47 seconds
......@@ -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;
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment