mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 12:55:58 +01:00
backend/wayland: Reject non 0 refresh rate mode sets
This commit is contained in:
parent
99314aac9f
commit
530e58b96e
1 changed files with 4 additions and 0 deletions
|
@ -270,6 +270,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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((state->committed & WLR_OUTPUT_STATE_BUFFER) &&
|
if ((state->committed & WLR_OUTPUT_STATE_BUFFER) &&
|
||||||
|
|
Loading…
Reference in a new issue