Server: remove headless backend

This was previously used to create a noop output, but we no longer rely
on that hack.
This commit is contained in:
Isaac Freund 2023-03-04 23:02:52 +01:00
parent 44004e2d28
commit b6ac1021ae
No known key found for this signature in database
GPG Key ID: 86DED400DDFD7A11

View File

@ -48,7 +48,6 @@ sigint_source: *wl.EventSource,
sigterm_source: *wl.EventSource,
backend: *wlr.Backend,
headless_backend: *wlr.Backend,
renderer: *wlr.Renderer,
allocator: *wlr.Allocator,
@ -88,10 +87,6 @@ pub fn init(self: *Self) !void {
// This frees itself when the wl.Server is destroyed
self.backend = try wlr.Backend.autocreate(self.wl_server);
// This backend is used to create a headless output for use when no actual
// outputs are available. This frees itself when the wl.Server is destroyed.
self.headless_backend = try wlr.Backend.createHeadless(self.wl_server);
self.renderer = try wlr.Renderer.autocreate(self.backend);
errdefer self.renderer.destroy();
try self.renderer.initServer(self.wl_server);