From 7adf5533f975736be1b1a20b25dcaa650b32c0e0 Mon Sep 17 00:00:00 2001 From: Consolatis <35009135+Consolatis@users.noreply.github.com> Date: Thu, 22 Feb 2024 21:24:05 +0100 Subject: [PATCH] src/output.c: log when disabling adaptive_sync on a nested labwc --- src/output.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/output.c b/src/output.c index 28ee298f..e1c615e7 100644 --- a/src/output.c +++ b/src/output.c @@ -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.