Fix issue with multiple outputs in layer example

This commit is contained in:
Drew DeVault 2018-03-20 21:45:50 -04:00
parent 8c98c18880
commit 0f7e78f6aa
1 changed files with 1 additions and 1 deletions

View File

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