diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2020-07-18 15:56:43 +0000 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2020-07-18 15:56:43 +0000 |
| commit | 811423ea204dea2eff734228607d80a60e7db41b (patch) | |
| tree | 4a7f295113f571eb8b916ea053e9afddcf9b97e4 | |
| parent | df548eab0c069c244fe234091a444a059835c2e5 (diff) | |
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.
| -rw-r--r-- | sway/desktop/output.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c index 5fdaba68..90653fa1 100644 --- 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; |
