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.
master
Andri Yngvason 4 years ago committed by Simon Ser
parent 380f6c9b46
commit ab8ded626b

@ -996,7 +996,8 @@ static void output_manager_apply(struct sway_server *server,
} else { } else {
oc->width = config_head->state.custom_mode.width; oc->width = config_head->state.custom_mode.width;
oc->height = config_head->state.custom_mode.height; 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->x = config_head->state.x;
oc->y = config_head->state.y; oc->y = config_head->state.y;

Loading…
Cancel
Save