From db2cf4b8744002c15c5563e26e0b62242fbc09c8 Mon Sep 17 00:00:00 2001 From: Robert Mader Date: Sun, 22 May 2022 16:19:17 +0200 Subject: [PATCH] tests/wayland: Bump wl_compositor version for test clients Version 2 is required for buffer transform, however directly going for the highest currently supported version doesn't break any tests and makes more features available. Also fix indentation below while on it. Part-of: --- src/tests/wayland-test-clients/wayland-test-client-utils.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/tests/wayland-test-clients/wayland-test-client-utils.c b/src/tests/wayland-test-clients/wayland-test-client-utils.c index 3cb068056..19ddd2861 100644 --- a/src/tests/wayland-test-clients/wayland-test-client-utils.c +++ b/src/tests/wayland-test-clients/wayland-test-client-utils.c @@ -151,7 +151,8 @@ handle_registry_global (void *user_data, if (strcmp (interface, "wl_compositor") == 0) { display->compositor = - wl_registry_bind (registry, id, &wl_compositor_interface, 1); + wl_registry_bind (registry, id, &wl_compositor_interface, + MIN (version, 5)); } else if (strcmp (interface, "wl_subcompositor") == 0) { @@ -161,7 +162,7 @@ handle_registry_global (void *user_data, else if (strcmp (interface, "wl_shm") == 0) { display->shm = wl_registry_bind (registry, - id, &wl_shm_interface, 1); + id, &wl_shm_interface, 1); } else if (strcmp (interface, "xdg_wm_base") == 0) {