diff options
author | Simon Ser <contact@emersion.fr> | 2021-11-25 16:20:54 +0100 |
---|---|---|
committer | Simon Zeni <simon@bl4ckb0ne.ca> | 2021-11-25 09:39:06 -0600 |
commit | 729e18bff5ff5a648a309d645cae100608defd4c (patch) | |
tree | 516c9f1e12cae11ad7661fa644f3edf1c4d8c1ae /sway | |
parent | f627cd77d6a889e97eb1e6b889322e70482d441c (diff) |
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
Diffstat (limited to 'sway')
-rw-r--r-- | sway/server.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sway/server.c b/sway/server.c index 0d179c88..246f9c4f 100644 --- a/sway/server.c +++ b/sway/server.c @@ -222,12 +222,11 @@ bool server_init(struct sway_server *server) { struct wlr_output *wlr_output = wlr_noop_add_output(server->noop_backend); root->noop_output = output_create(wlr_output); - server->headless_backend = - wlr_headless_backend_create_with_renderer(server->wl_display, - server->renderer); + server->headless_backend = wlr_headless_backend_create(server->wl_display); if (!server->headless_backend) { - sway_log(SWAY_INFO, "Failed to create secondary headless backend, " - "starting without it"); + sway_log(SWAY_ERROR, "Failed to create secondary headless backend"); + wlr_backend_destroy(server->backend); + return false; } else { wlr_multi_backend_add(server->backend, server->headless_backend); } |