Commit e73f49e5 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

wayland/shell: request compositor version 2 if available

This is required for wl_surface.set_buffer_transform.
parent a2c3a888
...@@ -162,7 +162,8 @@ static void registry_global_cb(void *data, struct wl_registry *registry, ...@@ -162,7 +162,8 @@ static void registry_global_cb(void *data, struct wl_registry *registry,
if (!strcmp(iface, "wl_compositor")) if (!strcmp(iface, "wl_compositor"))
sys->compositor = wl_registry_bind(registry, name, sys->compositor = wl_registry_bind(registry, name,
&wl_compositor_interface, 1); &wl_compositor_interface,
(vers < 2) ? vers : 2);
else else
if (!strcmp(iface, "wl_output")) if (!strcmp(iface, "wl_output"))
sys->output = wl_registry_bind(registry, name, &wl_output_interface, sys->output = wl_registry_bind(registry, name, &wl_output_interface,
......
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