aboutsummaryrefslogtreecommitdiff
path: root/sway/desktop/output.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/desktop/output.c')
-rw-r--r--sway/desktop/output.c3
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;