diff options
| author | Marten Ringwelski <git@maringuu.de> | 2020-12-06 21:47:51 +0100 |
|---|---|---|
| committer | Isaac Freund <ifreund@ifreund.xyz> | 2020-12-07 11:47:55 +0100 |
| commit | 0fecdf60cbef745357fd1c73bcca7b28d47e0a97 (patch) | |
| tree | fac0d78adf82d7ddbf44abb1244f0c2e24d0bd0b | |
| parent | c3b89860542a6f9c44374a465c165f3c07353054 (diff) | |
| download | river-0fecdf60cbef745357fd1c73bcca7b28d47e0a97.tar.gz river-0fecdf60cbef745357fd1c73bcca7b28d47e0a97.tar.xz | |
Ignore custom mode requests
| -rw-r--r-- | river/OutputManager.zig | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/river/OutputManager.zig b/river/OutputManager.zig index 009ef78..3500547 100644 --- a/river/OutputManager.zig +++ b/river/OutputManager.zig @@ -271,8 +271,11 @@ fn applyHeadToOutput(head: *c.wlr_output_configuration_head_v1, wlr_output: *c.w if (head.state.mode != null) { c.wlr_output_set_mode(wlr_output, head.state.mode); } else { - const custom_mode = &head.state.custom_mode; - c.wlr_output_set_custom_mode(wlr_output, custom_mode.width, custom_mode.height, custom_mode.refresh); + log.info(.output_manager, "custom modes are not supported until the next wlroots release: ignoring", .{}); + // TODO(wlroots) uncomment the following lines when wlroots 0.13.0 is released + // See https://github.com/swaywm/wlroots/pull/2517 + //const custom_mode = &head.state.custom_mode; + //c.wlr_output_set_custom_mode(wlr_output, custom_mode.width, custom_mode.height, custom_mode.refresh); } // TODO(wlroots) Figure out if this conversion is needed or if that is a bug in wlroots c.wlr_output_set_scale(wlr_output, @floatCast(f32, head.state.scale)); |
