summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2021-11-15 13:32:52 -0500
committerFurkan Sahin <furkan-dev@proton.me>2021-11-15 13:32:52 -0500
commitf1c61ad07792a8277e7045f42263b280a90d29e6 (patch)
tree0446444369c63c05109ffab3c027127ac19da17f /include
parent9361442a77c85341d926f05f274f7f42dc62b32e (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.h3
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;