mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 21:05:58 +01:00
Fix issue with multiple outputs in layer example
This commit is contained in:
parent
8c98c18880
commit
0f7e78f6aa
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue