From 0f7e78f6aa8530adc0dcc74a760b6478720e2ded Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Tue, 20 Mar 2018 21:45:50 -0400 Subject: Fix issue with multiple outputs in layer example --- examples/layer-shell.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/layer-shell.c b/examples/layer-shell.c index 91c509f6..f006a1b7 100644 --- a/examples/layer-shell.c +++ b/examples/layer-shell.c @@ -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 { -- cgit v1.2.3