mirror of
https://github.com/swaywm/sway.git
synced 2024-12-30 17:06:40 +01:00
Replace wlr_headless_backend_create_with_renderer call
Update for the wlroots breaking change in [1]. [1]: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3367
This commit is contained in:
parent
f627cd77d6
commit
729e18bff5
1 changed files with 4 additions and 5 deletions
|
@ -222,12 +222,11 @@ bool server_init(struct sway_server *server) {
|
||||||
struct wlr_output *wlr_output = wlr_noop_add_output(server->noop_backend);
|
struct wlr_output *wlr_output = wlr_noop_add_output(server->noop_backend);
|
||||||
root->noop_output = output_create(wlr_output);
|
root->noop_output = output_create(wlr_output);
|
||||||
|
|
||||||
server->headless_backend =
|
server->headless_backend = wlr_headless_backend_create(server->wl_display);
|
||||||
wlr_headless_backend_create_with_renderer(server->wl_display,
|
|
||||||
server->renderer);
|
|
||||||
if (!server->headless_backend) {
|
if (!server->headless_backend) {
|
||||||
sway_log(SWAY_INFO, "Failed to create secondary headless backend, "
|
sway_log(SWAY_ERROR, "Failed to create secondary headless backend");
|
||||||
"starting without it");
|
wlr_backend_destroy(server->backend);
|
||||||
|
return false;
|
||||||
} else {
|
} else {
|
||||||
wlr_multi_backend_add(server->backend, server->headless_backend);
|
wlr_multi_backend_add(server->backend, server->headless_backend);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue