aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLibravatar Simon Zeni <simon@bl4ckb0ne.ca>2021-11-15 13:32:52 -0500
committerLibravatar Simon Ser <contact@emersion.fr>2021-11-18 17:47:19 +0100
commit5865af75cf8029cc703cda36b68daafcb658c97b (patch)
tree0446444369c63c05109ffab3c027127ac19da17f /include
parentcontainer: fix surface_is_popup() (diff)
downloadsway-5865af75cf8029cc703cda36b68daafcb658c97b.tar.gz
sway-5865af75cf8029cc703cda36b68daafcb658c97b.tar.zst
sway-5865af75cf8029cc703cda36b68daafcb658c97b.zip
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 @@
4#include <wayland-server-core.h> 4#include <wayland-server-core.h>
5#include <wlr/backend.h> 5#include <wlr/backend.h>
6#include <wlr/backend/session.h> 6#include <wlr/backend/session.h>
7#include <wlr/render/allocator.h>
7#include <wlr/render/wlr_renderer.h> 8#include <wlr/render/wlr_renderer.h>
8#include <wlr/types/wlr_compositor.h> 9#include <wlr/types/wlr_compositor.h>
9#include <wlr/types/wlr_data_device.h> 10#include <wlr/types/wlr_data_device.h>
@@ -35,6 +36,8 @@ struct sway_server {
35 struct wlr_backend *noop_backend; 36 struct wlr_backend *noop_backend;
36 // secondary headless backend used for creating virtual outputs on-the-fly 37 // secondary headless backend used for creating virtual outputs on-the-fly
37 struct wlr_backend *headless_backend; 38 struct wlr_backend *headless_backend;
39 struct wlr_renderer *renderer;
40 struct wlr_allocator *allocator;
38 41
39 struct wlr_compositor *compositor; 42 struct wlr_compositor *compositor;
40 struct wl_listener compositor_new_surface; 43 struct wl_listener compositor_new_surface;