main: Pin wl_output version to 3

Otherwise, things will crash when the compositor adds support for a
newer version.
v0.4
Andri Yngvason 2021-12-15 23:13:58 +00:00
parent 13323a742f
commit 346d4b50fc
1 changed files with 1 additions and 2 deletions

View File

@ -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;