Skip to content

Commit

Permalink
config/output: Do not set adaptive_sync if not supported
Browse files Browse the repository at this point in the history
After 4e38f93 ("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: 4e38f93 ("config/output: Skip VRR tests when not supported")
Fixes: #8296
  • Loading branch information
kennylevinsen authored and emersion committed Aug 18, 2024
1 parent c30c451 commit ae7c1b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sway/config/output.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ae7c1b1

Please sign in to comment.