diff --git a/sway/server.c b/sway/server.c index 54945312..dfd01798 100644 --- a/sway/server.c +++ b/sway/server.c @@ -12,15 +12,17 @@ #include #include #include -#include #include +#include +#include #include // TODO WLR: make Xwayland optional #include #include "sway/commands.h" #include "sway/config.h" -#include "sway/server.h" #include "sway/input/input-manager.h" +#include "sway/server.h" +#include "sway/tree/layout.h" static void server_ready(struct wl_listener *listener, void *data) { wlr_log(L_DEBUG, "Compositor is ready, executing cmds in queue"); @@ -61,6 +63,9 @@ bool server_init(struct sway_server *server) { server->new_output.notify = handle_new_output; wl_signal_add(&server->backend->events.new_output, &server->new_output); + wlr_xdg_output_manager_create(server->wl_display, + root_container.sway_root->output_layout); + server->layer_shell = wlr_layer_shell_create(server->wl_display); wl_signal_add(&server->layer_shell->events.new_surface, &server->layer_shell_surface);