render: don't schedule new frame on output commit failure
This reverts commit c457b12cf3
.
This attempted workaround seems to work fine if the output commit only
fails with EBUSY, but enters an infinite loop otherwise.
This commit is contained in:
parent
c457b12cf3
commit
3c1f1df0c0
@ -142,10 +142,9 @@ pub fn renderOutput(output: *Output) void {
|
|||||||
output.wlr_output.setDamage(&damage);
|
output.wlr_output.setDamage(&damage);
|
||||||
}
|
}
|
||||||
|
|
||||||
output.wlr_output.commit() catch {
|
// TODO: handle failure
|
||||||
log.err("output commit failed for {}, retrying", .{std.mem.spanZ(&output.wlr_output.name)});
|
output.wlr_output.commit() catch
|
||||||
output.wlr_output.scheduleFrame();
|
log.err("output commit failed for {}", .{output.wlr_output.name});
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn renderFilter(view: *View, filter_tags: u32) bool {
|
fn renderFilter(view: *View, filter_tags: u32) bool {
|
||||||
|
Loading…
Reference in New Issue
Block a user