aboutsummaryrefslogtreecommitdiff
path: root/sway/server.c
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2023-11-23 13:08:53 +0100
committerKirill Primak <vyivel@eclair.cafe>2023-11-23 16:13:19 +0300
commit128b6253a924c30e8e4fd1f09ce19e21a826c5ad (patch)
tree7aa939c599b9185cecc2562b37387367fca05fbb /sway/server.c
parentfd6d6f1d97deea2fc94aaeb58c85c99a498d905b (diff)
Pass wl_display to wlr_output_layout
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4310
Diffstat (limited to 'sway/server.c')
-rw-r--r--sway/server.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sway/server.c b/sway/server.c
index de70e0ab..e4f8a7c8 100644
--- a/sway/server.c
+++ b/sway/server.c
@@ -120,6 +120,8 @@ bool server_init(struct sway_server *server) {
wl_display_set_global_filter(server->wl_display, filter_global, NULL);
+ root = root_create(server->wl_display);
+
server->backend = wlr_backend_autocreate(server->wl_display, &server->session);
if (!server->backend) {
sway_log(SWAY_ERROR, "Unable to create backend");