aboutsummaryrefslogtreecommitdiff
path: root/sway/tree/root.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/tree/root.c
parentfd6d6f1d97deea2fc94aaeb58c85c99a498d905b (diff)
Pass wl_display to wlr_output_layout
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4310
Diffstat (limited to 'sway/tree/root.c')
-rw-r--r--sway/tree/root.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/tree/root.c b/sway/tree/root.c
index 66008d30..478df00c 100644
--- a/sway/tree/root.c
+++ b/sway/tree/root.c
@@ -24,14 +24,14 @@ static void output_layout_handle_change(struct wl_listener *listener,
transaction_commit_dirty();
}
-struct sway_root *root_create(void) {
+struct sway_root *root_create(struct wl_display *wl_display) {
struct sway_root *root = calloc(1, sizeof(struct sway_root));
if (!root) {
sway_log(SWAY_ERROR, "Unable to allocate sway_root");
return NULL;
}
node_init(&root->node, N_ROOT, root);
- root->output_layout = wlr_output_layout_create();
+ root->output_layout = wlr_output_layout_create(wl_display);
wl_list_init(&root->all_outputs);
#if HAVE_XWAYLAND
wl_list_init(&root->xwayland_unmanaged);