From 346d4b50fccd453ae613eb7160cfb8ccfcbc9e60 Mon Sep 17 00:00:00 2001 From: Andri Yngvason Date: Wed, 15 Dec 2021 23:13:58 +0000 Subject: [PATCH] main: Pin wl_output version to 3 Otherwise, things will crash when the compositor adds support for a newer version. --- src/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index 6a7ef3e..ad742df 100644 --- a/src/main.c +++ b/src/main.c @@ -133,8 +133,7 @@ static void registry_add(void* data, struct wl_registry* registry, if (strcmp(interface, wl_output_interface.name) == 0) { struct wl_output* wl_output = - wl_registry_bind(registry, id, &wl_output_interface, - version); + wl_registry_bind(registry, id, &wl_output_interface, 3); if (!wl_output) return;