mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
backend/x11: Reject non 0 refresh rate mode sets
This commit is contained in:
parent
5567aefb1c
commit
99314aac9f
1 changed files with 4 additions and 0 deletions
|
|
@ -133,6 +133,10 @@ static bool output_test(struct wlr_output *wlr_output,
|
||||||
|
|
||||||
if (state->committed & WLR_OUTPUT_STATE_MODE) {
|
if (state->committed & WLR_OUTPUT_STATE_MODE) {
|
||||||
assert(state->mode_type == WLR_OUTPUT_STATE_MODE_CUSTOM);
|
assert(state->mode_type == WLR_OUTPUT_STATE_MODE_CUSTOM);
|
||||||
|
|
||||||
|
if (state->custom_mode.refresh != 0) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue