main: Pin wl_output version to 3

Otherwise, things will crash when the compositor adds support for a
newer version.
pull/127/head
Andri Yngvason 2021-12-15 23:13:58 +00:00
parent 8a65a8557e
commit 85563d59f8
1 changed files with 1 additions and 2 deletions

View File

@ -125,8 +125,7 @@ static void registry_add(void* data, struct wl_registry* registry,
if (strcmp(interface, wl_output_interface.name) == 0) { if (strcmp(interface, wl_output_interface.name) == 0) {
struct wl_output* wl_output = struct wl_output* wl_output =
wl_registry_bind(registry, id, &wl_output_interface, wl_registry_bind(registry, id, &wl_output_interface, 3);
version);
if (!wl_output) if (!wl_output)
return; return;