diff options
author | Alexander Courtis <alex@courtis.org> | 2023-01-24 00:17:52 +1100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2023-02-10 18:14:21 +0100 |
commit | 2921b232be62d2a5467ca7fe05ded5eeb3c3d6af (patch) | |
tree | 3ce4498bd03b2a743a8805f8558f20a1245296c0 | |
parent | focus_on_window_activation: raise if floating (diff) | |
download | sway-2921b232be62d2a5467ca7fe05ded5eeb3c3d6af.tar.gz sway-2921b232be62d2a5467ca7fe05ded5eeb3c3d6af.tar.zst sway-2921b232be62d2a5467ca7fe05ded5eeb3c3d6af.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.
(cherry picked from commit 2c0f68b7c6c6e0f5ab79b22fc4334b6813a0f3fd)
-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 81a20e25..94210113 100644 --- a/sway/desktop/output.c +++ b/sway/desktop/output.c | |||
@@ -1018,6 +1018,7 @@ static void output_manager_apply(struct sway_server *server, | |||
1018 | oc->y = config_head->state.y; | 1018 | oc->y = config_head->state.y; |
1019 | oc->transform = config_head->state.transform; | 1019 | oc->transform = config_head->state.transform; |
1020 | oc->scale = config_head->state.scale; | 1020 | oc->scale = config_head->state.scale; |
1021 | oc->adaptive_sync = config_head->state.adaptive_sync_enabled; | ||
1021 | 1022 | ||
1022 | if (test_only) { | 1023 | if (test_only) { |
1023 | ok &= test_output_config(oc, output); | 1024 | ok &= test_output_config(oc, output); |