diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-11-22 21:06:08 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2017-11-22 21:06:08 -0500 |
commit | 4ca1e77fdbbf559a5bb28d4936afa6ade63985cd (patch) | |
tree | 935c9a56d20f591688d196a85cecfc6080727d26 /sway/server.c | |
parent | aeda2e077f6184ecd26dc078c7b5db7f0dc54fd7 (diff) |
Add views to tree and render them
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); |