commit 2c0f68b7c6c6e0f5ab79b22fc4334b6813a0f3fd
parent 36f627d0fadf1d00e45662359246dad9a40c7a7f
Author: Alexander Courtis <alex@courtis.org>
Date: Tue, 24 Jan 2023 00:17:52 +1100
Apply new adaptive sync value from wlr-output-management
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.
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/sway/desktop/output.c b/sway/desktop/output.c
@@ -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);