src/output.c: log when disabling adaptive_sync on a nested labwc

This commit is contained in:
Consolatis 2024-02-22 21:24:05 +01:00
parent d69faffc4e
commit 7adf5533f9

View file

@ -518,11 +518,17 @@ verify_output_config_v1(const struct wlr_output_configuration_v1 *config)
if (wlr_output_is_wl(head->state.output) && refresh != 0) {
/* Wayland backend does not support refresh rates */
err_msg = "Wayland backend refresh rate unsupported";
err_msg = "Wayland backend refresh rates unsupported";
goto custom_mode_failed;
}
}
if (wlr_output_is_wl(head->state.output)
&& !head->state.adaptive_sync_enabled) {
err_msg = "Wayland backend requires adaptive sync";
goto custom_mode_failed;
}
/*
* Ensure the new output state can be applied on
* its own and inform the client when it can not.