sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit ab8ded626b5d0e9c59495b0988be4077b605d3a2
parent 380f6c9b46283cf927bc84f7fafd1e0eda230cb5
Author: Andri Yngvason <andri@yngvason.is>
Date:   Sat, 18 Jul 2020 15:56:43 +0000

desktop: output: Scale custom output refresh rate

This fixes an issue with wlr-output-management causing the frame rate to
jump to 60000 Hz when setting a custom mode.

Diffstat:
Msway/desktop/output.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sway/desktop/output.c b/sway/desktop/output.c @@ -996,7 +996,8 @@ static void output_manager_apply(struct sway_server *server, } else { oc->width = config_head->state.custom_mode.width; oc->height = config_head->state.custom_mode.height; - oc->refresh_rate = config_head->state.custom_mode.refresh; + oc->refresh_rate = + config_head->state.custom_mode.refresh / 1000.f; } oc->x = config_head->state.x; oc->y = config_head->state.y;