Output: remove overzealous assert

If running river with WLR_BACKENDS=headless, every output is headless
not just the noop output.
This commit is contained in:
Isaac Freund 2022-05-20 15:13:28 +02:00
parent 7c440b834e
commit ded490d3dd
No known key found for this signature in database
GPG Key ID: 86DED400DDFD7A11

View File

@ -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), damage_destroy: wl.Listener(*wlr.OutputDamage) = wl.Listener(*wlr.OutputDamage).init(handleDamageDestroy),
pub fn init(self: *Self, wlr_output: *wlr.Output) !void { pub fn init(self: *Self, wlr_output: *wlr.Output) !void {
assert(!wlr_output.isHeadless());
if (!wlr_output.initRender(server.allocator, server.renderer)) return; 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 // Some backends don't have modes. DRM+KMS does, and we need to set a mode