main: Pin wl_output version to 3
Otherwise, things will crash when the compositor adds support for a newer version.v0.4
parent
13323a742f
commit
346d4b50fc
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue