diff options
-rw-r--r-- | sway/config/output.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/config/output.c b/sway/config/output.c index b3e8371e..9c7082d0 100644 --- a/sway/config/output.c +++ b/sway/config/output.c | |||
@@ -463,6 +463,10 @@ static void queue_output_config(struct output_config *oc, | |||
463 | sway_log(SWAY_DEBUG, "Set %s adaptive sync to %d", wlr_output->name, | 463 | sway_log(SWAY_DEBUG, "Set %s adaptive sync to %d", wlr_output->name, |
464 | oc->adaptive_sync); | 464 | oc->adaptive_sync); |
465 | wlr_output_state_set_adaptive_sync_enabled(pending, oc->adaptive_sync == 1); | 465 | wlr_output_state_set_adaptive_sync_enabled(pending, oc->adaptive_sync == 1); |
466 | if (oc->adaptive_sync == 1 && !wlr_output_test_state(wlr_output, pending)) { | ||
467 | sway_log(SWAY_DEBUG, "Adaptive sync failed, ignoring"); | ||
468 | wlr_output_state_set_adaptive_sync_enabled(pending, false); | ||
469 | } | ||
466 | } | 470 | } |
467 | 471 | ||
468 | if (oc && oc->render_bit_depth != RENDER_BIT_DEPTH_DEFAULT) { | 472 | if (oc && oc->render_bit_depth != RENDER_BIT_DEPTH_DEFAULT) { |