diff options
Diffstat (limited to 'sway/server.c')
-rw-r--r-- | sway/server.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/server.c b/sway/server.c index f78bcef1..6e66bc3c 100644 --- a/sway/server.c +++ b/sway/server.c @@ -6,6 +6,7 @@ #include <wlr/backend/session.h> #include <wlr/render.h> #include <wlr/render/gles2.h> +#include <wlr/types/wlr_compositor.h> // TODO WLR: make Xwayland optional #include <wlr/xwayland.h> #include "sway/server.h" @@ -21,6 +22,9 @@ bool server_init(struct sway_server *server) { server->renderer = wlr_gles2_renderer_create(server->backend); wl_display_init_shm(server->wl_display); + server->compositor = wlr_compositor_create( + server->wl_display, server->renderer); + server->data_device_manager = wlr_data_device_manager_create(server->wl_display); |