mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-11-21 22:52:20 +00:00
Fix issue with multiple outputs in layer example
This commit is contained in:
parent
8c98c18880
commit
0f7e78f6aa
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user