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:
parent
7c440b834e
commit
ded490d3dd
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user