diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-03-20 21:45:50 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2018-03-27 18:50:32 -0400 |
commit | 0f7e78f6aa8530adc0dcc74a760b6478720e2ded (patch) | |
tree | 6072e353ca309abc4b8bd2a0278881204464dc93 /examples | |
parent | 8c98c188808e16f18349a89eb534e2bbf7ea65d8 (diff) |
Fix issue with multiple outputs in layer example
Diffstat (limited to 'examples')
-rw-r--r-- | examples/layer-shell.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |