aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2024-08-18 14:50:48 +0200
committerFurkan Sahin <furkan-dev@proton.me>2024-08-18 14:50:48 +0200
commit964f6ec46939dcc3c8f100ab40dcefb6057d7f6d (patch)
treefb1329f8659a72d8a7e3307c79431a2f517aab6d
parent8abf6b832cf5662bd6cc572c400e44ec96a6bfc0 (diff)
config/output: Do not set adaptive_sync if not supported
After 622be4526a93 ("config/output: Skip VRR tests when not supported"), the configuration search no longer touches VRR state for outputs that are known to not support it. This also means that it will not remove VRR if already set, which could cause output configuration to fail. Ensure that VRR state is never set for outputs that do not support it by adding the same test for support to queue_output_config. Fixes: 622be4526a93 ("config/output: Skip VRR tests when not supported") Fixes: https://github.com/swaywm/sway/issues/8296
-rw-r--r--sway/config/output.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/config/output.c b/sway/config/output.c
index 1b378078..cc3bf457 100644
--- a/sway/config/output.c
+++ b/sway/config/output.c
@@ -491,7 +491,7 @@ static void queue_output_config(struct output_config *oc,
wlr_output_state_set_scale(pending, scale);
}
- if (oc && oc->adaptive_sync != -1) {
+ if (oc && oc->adaptive_sync != -1 && wlr_output->adaptive_sync_supported) {
sway_log(SWAY_DEBUG, "Set %s adaptive sync to %d", wlr_output->name,
oc->adaptive_sync);
wlr_output_state_set_adaptive_sync_enabled(pending, oc->adaptive_sync == 1);