mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-11-22 07:02:28 +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,
|
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…
Reference in New Issue
Block a user