From b6ac1021ae15aee97d4bf417c7e7f8767262f424 Mon Sep 17 00:00:00 2001 From: Isaac Freund Date: Sat, 4 Mar 2023 23:02:52 +0100 Subject: [PATCH] Server: remove headless backend This was previously used to create a noop output, but we no longer rely on that hack. --- river/Server.zig | 5 ----- 1 file changed, 5 deletions(-) diff --git a/river/Server.zig b/river/Server.zig index 3715f1e..8cb5671 100644 --- a/river/Server.zig +++ b/river/Server.zig @@ -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);