aboutsummaryrefslogtreecommitdiff
path: root/backend/headless
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-04-05 22:48:00 -0400
committeremersion <contact@emersion.fr>2018-04-05 22:48:00 -0400
commit03563b61a8d5d9a9aba8ddbe721134f94e4e86f6 (patch)
tree89ac8b5c9d95e6e3df78fc8fdf8968c08399d4ed /backend/headless
parentce09537a9aefee5fb27de7ec3907cd454e29f1b1 (diff)
backend/{x11,headless}: use default if supplied refresh is invalid
Diffstat (limited to 'backend/headless')
-rw-r--r--backend/headless/output.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/headless/output.c b/backend/headless/output.c
index 583e521e..9c479cde 100644
--- a/backend/headless/output.c
+++ b/backend/headless/output.c
@@ -25,7 +25,7 @@ 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) {
+ if (refresh <= 0) {
refresh = HEADLESS_DEFAULT_REFRESH;
}