Fix issue with multiple outputs in layer example

master
Drew DeVault 7 years ago
parent 8c98c18880
commit 0f7e78f6aa

@ -94,7 +94,7 @@ static void handle_global(void *data, struct wl_registry *registry,
compositor = wl_registry_bind(registry, name, compositor = wl_registry_bind(registry, name,
&wl_compositor_interface, 1); &wl_compositor_interface, 1);
} else if (strcmp(interface, "wl_output") == 0) { } else if (strcmp(interface, "wl_output") == 0) {
if (output == 0) { if (output == 0 && !wl_output) {
wl_output = wl_registry_bind(registry, name, wl_output = wl_registry_bind(registry, name,
&wl_output_interface, 1); &wl_output_interface, 1);
} else { } else {

Loading…
Cancel
Save