[PATCH] window: Bind to version 3 of compositor

alexl at redhat.com alexl at redhat.com
Fri May 24 02:44:27 PDT 2013


From: Alexander Larsson <alexl at redhat.com>

We need version 3 of the compositor to get version 3 of wl_surface
which has set_buffer_transform and set_buffer_scale.
---
 clients/window.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/clients/window.c b/clients/window.c
index b2e1af7..8e49f22 100644
--- a/clients/window.c
+++ b/clients/window.c
@@ -4749,7 +4749,7 @@ registry_handle_global(void *data, struct wl_registry *registry, uint32_t id,
 
 	if (strcmp(interface, "wl_compositor") == 0) {
 		d->compositor = wl_registry_bind(registry, id,
-						 &wl_compositor_interface, 1);
+						 &wl_compositor_interface, 3);
 	} else if (strcmp(interface, "wl_output") == 0) {
 		display_add_output(d, id);
 	} else if (strcmp(interface, "wl_seat") == 0) {
-- 
1.8.1.4



More information about the wayland-devel mailing list