diff options
author | emersion <contact@emersion.fr> | 2018-04-03 22:54:01 -0400 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2018-04-03 22:54:01 -0400 |
commit | 2d6bbf12f8dc9217f86ec232b7343ad3284863f5 (patch) | |
tree | 060976b0eb4770fb771a52a13c10d2940d9d2bd5 /backend/headless | |
parent | 8f8470aed95209040ac1f73bd42091d32f864aa7 (diff) |
backend/{x11,headless}: fix refresh rate
Diffstat (limited to 'backend/headless')
-rw-r--r-- | backend/headless/output.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/backend/headless/output.c b/backend/headless/output.c index a13ed22c..583e521e 100644 --- a/backend/headless/output.c +++ b/backend/headless/output.c @@ -25,6 +25,10 @@ static bool output_set_custom_mode(struct wlr_output *wlr_output, int32_t width, (struct wlr_headless_output *)wlr_output; struct wlr_headless_backend *backend = output->backend; + if (refresh == 0) { + refresh = HEADLESS_DEFAULT_REFRESH; + } + if (output->egl_surface) { eglDestroySurface(backend->egl.display, output->egl_surface); } @@ -114,7 +118,7 @@ struct wlr_output *wlr_headless_add_output(struct wlr_backend *wlr_backend, goto error; } - output_set_custom_mode(wlr_output, width, height, 60*1000); + output_set_custom_mode(wlr_output, width, height, 0); strncpy(wlr_output->make, "headless", sizeof(wlr_output->make)); strncpy(wlr_output->model, "headless", sizeof(wlr_output->model)); snprintf(wlr_output->name, sizeof(wlr_output->name), "HEADLESS-%d", |