From ded490d3ddc7310474940347214bf3fc303cbc25 Mon Sep 17 00:00:00 2001 From: Isaac Freund Date: Fri, 20 May 2022 15:13:28 +0200 Subject: [PATCH] Output: remove overzealous assert If running river with WLR_BACKENDS=headless, every output is headless not just the noop output. --- river/Output.zig | 2 -- 1 file changed, 2 deletions(-) diff --git a/river/Output.zig b/river/Output.zig index 7be62e8..0cc86c2 100644 --- a/river/Output.zig +++ b/river/Output.zig @@ -98,8 +98,6 @@ frame: wl.Listener(*wlr.OutputDamage) = wl.Listener(*wlr.OutputDamage).init(hand damage_destroy: wl.Listener(*wlr.OutputDamage) = wl.Listener(*wlr.OutputDamage).init(handleDamageDestroy), pub fn init(self: *Self, wlr_output: *wlr.Output) !void { - assert(!wlr_output.isHeadless()); - if (!wlr_output.initRender(server.allocator, server.renderer)) return; // Some backends don't have modes. DRM+KMS does, and we need to set a mode