mirror of
https://github.com/jjsullivan5196/wvkbd.git
synced 2025-04-17 14:26:49 +02:00
avoid using "wl_output" literal
This commit is contained in:
parent
d6439afcb9
commit
aa9e8ab7ab
2
main.c
2
main.c
@ -424,7 +424,7 @@ handle_global(void *data, struct wl_registry *registry, uint32_t name,
|
|||||||
wl_registry_bind(registry, name, &wl_compositor_interface, 3);
|
wl_registry_bind(registry, name, &wl_compositor_interface, 3);
|
||||||
} else if (strcmp(interface, wl_shm_interface.name) == 0) {
|
} else if (strcmp(interface, wl_shm_interface.name) == 0) {
|
||||||
draw_ctx.shm = wl_registry_bind(registry, name, &wl_shm_interface, 1);
|
draw_ctx.shm = wl_registry_bind(registry, name, &wl_shm_interface, 1);
|
||||||
} else if (strcmp(interface, "wl_output") == 0) {
|
} else if (strcmp(interface, wl_output_interface.name) == 0) {
|
||||||
if (wl_outputs_size < WL_OUTPUTS_LIMIT) {
|
if (wl_outputs_size < WL_OUTPUTS_LIMIT) {
|
||||||
struct Output *output = &wl_outputs[wl_outputs_size];
|
struct Output *output = &wl_outputs[wl_outputs_size];
|
||||||
output->data =
|
output->data =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user