build: require wlroots version 0.17.2

This fixes a crash that users have hit fairly often in the wild using
Xwayland and allows us to remove an ugly workaround for another issue.
This commit is contained in:
Isaac Freund
2024-03-11 19:14:37 +01:00
parent 49a779b24d
commit c474be1537
2 changed files with 2 additions and 13 deletions

View File

@ -786,17 +786,6 @@ fn processOutputConfig(
var proposed_state = wlr.Output.State.init();
head.state.apply(&proposed_state);
// Work around a division by zero in the wlroots drm backend.
// See https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3791
// TODO(wlroots) remove this workaround after 0.17.2 is out.
if (output.wlr_output.isDrm() and
proposed_state.committed.mode and
proposed_state.mode_type == .custom and
proposed_state.custom_mode.refresh == 0)
{
proposed_state.custom_mode.refresh = 60000;
}
switch (action) {
.test_only => {
if (!wlr_output.testState(&proposed_state)) success = false;