mirror of
https://github.com/swaywm/sway.git
synced 2026-04-23 06:46:27 -04:00
Fix refresh rate scale of output
When applying config, value mode->refresh is mHz; convert it to Hz before assigning it to the temporary output config. oc->refresh_rate will be converted back to mHz in set_mode function. Fix debug log printing GHz instead of Hz.
This commit is contained in:
parent
3ee3a9ef60
commit
a5b6f40937
2 changed files with 3 additions and 3 deletions
|
|
@ -856,7 +856,7 @@ void handle_output_manager_apply(struct wl_listener *listener, void *data) {
|
|||
struct wlr_output_mode *mode = config_head->state.mode;
|
||||
oc->width = mode->width;
|
||||
oc->height = mode->height;
|
||||
oc->refresh_rate = mode->refresh;
|
||||
oc->refresh_rate = mode->refresh / 1000.f;
|
||||
} else {
|
||||
oc->width = config_head->state.custom_mode.width;
|
||||
oc->height = config_head->state.custom_mode.height;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue