diff options
Diffstat (limited to 'sway/tree/root.c')
-rw-r--r-- | sway/tree/root.c | 4 |
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, | |||
24 | transaction_commit_dirty(); | 24 | transaction_commit_dirty(); |
25 | } | 25 | } |
26 | 26 | ||
27 | struct sway_root *root_create(void) { | 27 | struct sway_root *root_create(struct wl_display *wl_display) { |
28 | struct sway_root *root = calloc(1, sizeof(struct sway_root)); | 28 | struct sway_root *root = calloc(1, sizeof(struct sway_root)); |
29 | if (!root) { | 29 | if (!root) { |
30 | sway_log(SWAY_ERROR, "Unable to allocate sway_root"); | 30 | sway_log(SWAY_ERROR, "Unable to allocate sway_root"); |
31 | return NULL; | 31 | return NULL; |
32 | } | 32 | } |
33 | node_init(&root->node, N_ROOT, root); | 33 | node_init(&root->node, N_ROOT, root); |
34 | root->output_layout = wlr_output_layout_create(); | 34 | root->output_layout = wlr_output_layout_create(wl_display); |
35 | wl_list_init(&root->all_outputs); | 35 | wl_list_init(&root->all_outputs); |
36 | #if HAVE_XWAYLAND | 36 | #if HAVE_XWAYLAND |
37 | wl_list_init(&root->xwayland_unmanaged); | 37 | wl_list_init(&root->xwayland_unmanaged); |