Skip to content

Commit

Permalink
Apply new adaptive sync value from wlr-output-management
Browse files Browse the repository at this point in the history
fixes #7394

Test cases:
* zwlr_output_configuration_head_v1_set_adaptive_sync 0->0, no change
* 0->1, enabled
* 1->0, disabled
* 1->1, no change

Similar tests with an incapable display resulted in `"Adaptive sync
failed, ignoring"` messages as expected.
  • Loading branch information
alex-courtis authored Jan 23, 2023
1 parent 36f627d commit 2c0f68b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sway/desktop/output.c
Original file line number Diff line number Diff line change
Expand Up @@ -1034,6 +1034,7 @@ static void output_manager_apply(struct sway_server *server,
oc->y = config_head->state.y;
oc->transform = config_head->state.transform;
oc->scale = config_head->state.scale;
oc->adaptive_sync = config_head->state.adaptive_sync_enabled;

if (test_only) {
ok &= test_output_config(oc, output);
Expand Down

0 comments on commit 2c0f68b

Please sign in to comment.