diff options
author | Simon Zeni <simon@bl4ckb0ne.ca> | 2021-11-15 13:32:52 -0500 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-11-18 17:47:19 +0100 |
commit | 5865af75cf8029cc703cda36b68daafcb658c97b (patch) | |
tree | 0446444369c63c05109ffab3c027127ac19da17f /include | |
parent | cbecc5cbaed6b30c995d2c245def458e383b4e38 (diff) |
sway: create wlr_renderer and wlr_allocator
wlroots now required the compositor to create its own wlr_renderer and
wlr_allocator to initialize the wlr_output
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/server.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sway/server.h b/include/sway/server.h index f99bbda6..109097d7 100644 --- a/include/sway/server.h +++ b/include/sway/server.h @@ -4,6 +4,7 @@ #include <wayland-server-core.h> #include <wlr/backend.h> #include <wlr/backend/session.h> +#include <wlr/render/allocator.h> #include <wlr/render/wlr_renderer.h> #include <wlr/types/wlr_compositor.h> #include <wlr/types/wlr_data_device.h> @@ -35,6 +36,8 @@ struct sway_server { struct wlr_backend *noop_backend; // secondary headless backend used for creating virtual outputs on-the-fly struct wlr_backend *headless_backend; + struct wlr_renderer *renderer; + struct wlr_allocator *allocator; struct wlr_compositor *compositor; struct wl_listener compositor_new_surface; |