diff options
author | Alexander Courtis <alex@courtis.org> | 2023-01-24 00:17:52 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-23 14:17:52 +0100 |
commit | 2c0f68b7c6c6e0f5ab79b22fc4334b6813a0f3fd (patch) | |
tree | 5cd3dbc25a62b89e725d3edc19bd2e9fadd67cb7 /sway/desktop/output.c | |
parent | Check return value of wlr_renderer_begin() (diff) | |
download | sway-2c0f68b7c6c6e0f5ab79b22fc4334b6813a0f3fd.tar.gz sway-2c0f68b7c6c6e0f5ab79b22fc4334b6813a0f3fd.tar.zst sway-2c0f68b7c6c6e0f5ab79b22fc4334b6813a0f3fd.zip |
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 (limited to 'sway/desktop/output.c')
-rw-r--r-- | sway/desktop/output.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c index 409478a7..1c209a39 100644 --- a/sway/desktop/output.c +++ b/sway/desktop/output.c | |||
@@ -1034,6 +1034,7 @@ static void output_manager_apply(struct sway_server *server, | |||
1034 | oc->y = config_head->state.y; | 1034 | oc->y = config_head->state.y; |
1035 | oc->transform = config_head->state.transform; | 1035 | oc->transform = config_head->state.transform; |
1036 | oc->scale = config_head->state.scale; | 1036 | oc->scale = config_head->state.scale; |
1037 | oc->adaptive_sync = config_head->state.adaptive_sync_enabled; | ||
1037 | 1038 | ||
1038 | if (test_only) { | 1039 | if (test_only) { |
1039 | ok &= test_output_config(oc, output); | 1040 | ok &= test_output_config(oc, output); |