aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Primak <vyivel@eclair.cafe>2024-01-25 18:10:50 +0300
committerSimon Ser <contact@emersion.fr>2024-01-25 16:13:33 +0100
commitf202bc84d2c072ae39fc4e8a350a8b0a616f350b (patch)
treea70b6fe75a7e769757f3852ab278c6117064e802
parenta4e85332a1fe6b079c6da1689ca33d8ba4c71977 (diff)
Chase wlroots!4443
-rw-r--r--sway/server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/server.c b/sway/server.c
index 73bf9d70..cc20e89d 100644
--- a/sway/server.c
+++ b/sway/server.c
@@ -172,7 +172,7 @@ bool server_init(struct sway_server *server) {
root = root_create(server->wl_display);
- server->backend = wlr_backend_autocreate(server->wl_display, &server->session);
+ server->backend = wlr_backend_autocreate(server->wl_event_loop, &server->session);
if (!server->backend) {
sway_log(SWAY_ERROR, "Unable to create backend");
return false;
@@ -355,7 +355,7 @@ bool server_init(struct sway_server *server) {
return false;
}
- server->headless_backend = wlr_headless_backend_create(server->wl_display);
+ server->headless_backend = wlr_headless_backend_create(server->wl_event_loop);
if (!server->headless_backend) {
sway_log(SWAY_ERROR, "Failed to create secondary headless backend");
wlr_backend_destroy(server->backend);