aboutsummaryrefslogtreecommitdiff
path: root/include/backend
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-04-29 09:18:19 +0200
committerKenny Levinsen <kl@kl.wtf>2021-05-21 22:13:54 +0200
commitc82f37542d3a63c3b5dd573dcdb8559ea1f888f7 (patch)
treec800a2c59e472f19e32474313bc54876d3fffbd6 /include/backend
parent349553d011d987dc14e30dc9d9c23df2ac03091f (diff)
backend/headless: use common renderer and allocator
Instead of managing our own renderer and allocator, let the common code do it. Because wlr_headless_backend_create_with_renderer needs to re-use the parent renderer, we have to hand-roll some of the renderer initialization.
Diffstat (limited to 'include/backend')
-rw-r--r--include/backend/headless.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/backend/headless.h b/include/backend/headless.h
index a6720eb4..1ad82fc2 100644
--- a/include/backend/headless.h
+++ b/include/backend/headless.h
@@ -9,16 +9,14 @@
struct wlr_headless_backend {
struct wlr_backend backend;
int drm_fd;
- struct wlr_renderer *renderer;
- struct wlr_allocator *allocator;
struct wlr_drm_format *format;
struct wl_display *display;
struct wl_list outputs;
size_t last_output_num;
struct wl_list input_devices;
struct wl_listener display_destroy;
- struct wl_listener renderer_destroy;
- bool has_parent_renderer;
+ struct wlr_renderer *parent_renderer;
+ struct wl_listener parent_renderer_destroy;
bool started;
};