From 03563b61a8d5d9a9aba8ddbe721134f94e4e86f6 Mon Sep 17 00:00:00 2001
From: emersion <contact@emersion.fr>
Date: Thu, 5 Apr 2018 22:48:00 -0400
Subject: backend/{x11,headless}: use default if supplied refresh is invalid

---
 backend/x11/output.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'backend/x11')

diff --git a/backend/x11/output.c b/backend/x11/output.c
index a2d8ba2d..ff625fbe 100644
--- a/backend/x11/output.c
+++ b/backend/x11/output.c
@@ -26,7 +26,7 @@ static void parse_xcb_setup(struct wlr_output *output, xcb_connection_t *xcb_con
 static void output_set_refresh(struct wlr_output *wlr_output, int32_t refresh) {
 	struct wlr_x11_output *output = (struct wlr_x11_output *)wlr_output;
 
-	if (refresh == 0) {
+	if (refresh <= 0) {
 		refresh = X11_DEFAULT_REFRESH;
 	}
 
-- 
cgit v1.2.3