aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Orzechowski <alex@ozal.ski>2023-06-27 11:45:09 -0400
committerAlexander Orzechowski <alex@ozal.ski>2023-06-27 11:47:58 -0400
commit530e58b96e00ffc6a35fc7d72e1b0d45fe928528 (patch)
treecfc5650d1039c457f3db19974d5573f582679ee4
parent99314aac9ff4f6914676d26456a083d95fb731fc (diff)
backend/wayland: Reject non 0 refresh rate mode sets
-rw-r--r--backend/wayland/output.c4
1 files changed, 4 insertions, 0 deletions
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) &&