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) {
|
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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue