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.
This commit is contained in:
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…
Reference in a new issue