aboutsummaryrefslogtreecommitdiff
path: root/backend/x11/output.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-04-05 22:56:02 -0400
committerGitHub <noreply@github.com>2018-04-05 22:56:02 -0400
commit87eb10c84978cbd684e6df2024bcbf33a4db515e (patch)
tree89ac8b5c9d95e6e3df78fc8fdf8968c08399d4ed /backend/x11/output.c
parentce09537a9aefee5fb27de7ec3907cd454e29f1b1 (diff)
parent03563b61a8d5d9a9aba8ddbe721134f94e4e86f6 (diff)
Merge pull request #842 from emersion/custom-mode-invalid-refresh
backend/{x11,headless}: use default if supplied refresh is invalid
Diffstat (limited to 'backend/x11/output.c')
-rw-r--r--backend/x11/output.c2
1 files changed, 1 insertions, 1 deletions
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;
}