diff options
author | Alexander Orzechowski <alex@ozal.ski> | 2023-06-27 11:45:38 -0400 |
---|---|---|
committer | Alexander Orzechowski <alex@ozal.ski> | 2023-06-27 11:45:44 -0400 |
commit | 99314aac9ff4f6914676d26456a083d95fb731fc (patch) | |
tree | de591048cedb64065586bd8c396d8e878c560664 | |
parent | 5567aefb1c5690ac5aab1cc05f6b5e52b62c246c (diff) |
backend/x11: Reject non 0 refresh rate mode sets
-rw-r--r-- | backend/x11/output.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/backend/x11/output.c b/backend/x11/output.c index 0fd9b9c5..807b5569 100644 --- a/backend/x11/output.c +++ b/backend/x11/output.c @@ -133,6 +133,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; + } } return true; |