From 530e58b96e00ffc6a35fc7d72e1b0d45fe928528 Mon Sep 17 00:00:00 2001 From: Alexander Orzechowski Date: Tue, 27 Jun 2023 11:45:09 -0400 Subject: backend/wayland: Reject non 0 refresh rate mode sets --- backend/wayland/output.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/wayland/output.c b/backend/wayland/output.c index 22f61de0..a7facb7b 100644 --- a/backend/wayland/output.c +++ b/backend/wayland/output.c @@ -270,6 +270,10 @@ static bool output_test(struct wlr_output *wlr_output, if (state->committed & WLR_OUTPUT_STATE_MODE) { assert(state->mode_type == WLR_OUTPUT_STATE_MODE_CUSTOM); + + if (state->custom_mode.refresh != 0) { + return false; + } } if ((state->committed & WLR_OUTPUT_STATE_BUFFER) && -- cgit v1.2.3