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:
parent
44004e2d28
commit
b6ac1021ae
@ -48,7 +48,6 @@ sigint_source: *wl.EventSource,
|
|||||||
sigterm_source: *wl.EventSource,
|
sigterm_source: *wl.EventSource,
|
||||||
|
|
||||||
backend: *wlr.Backend,
|
backend: *wlr.Backend,
|
||||||
headless_backend: *wlr.Backend,
|
|
||||||
|
|
||||||
renderer: *wlr.Renderer,
|
renderer: *wlr.Renderer,
|
||||||
allocator: *wlr.Allocator,
|
allocator: *wlr.Allocator,
|
||||||
@ -88,10 +87,6 @@ pub fn init(self: *Self) !void {
|
|||||||
// This frees itself when the wl.Server is destroyed
|
// This frees itself when the wl.Server is destroyed
|
||||||
self.backend = try wlr.Backend.autocreate(self.wl_server);
|
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);
|
self.renderer = try wlr.Renderer.autocreate(self.backend);
|
||||||
errdefer self.renderer.destroy();
|
errdefer self.renderer.destroy();
|
||||||
try self.renderer.initServer(self.wl_server);
|
try self.renderer.initServer(self.wl_server);
|
||||||
|
Loading…
Reference in New Issue
Block a user