mirror of
https://github.com/swaywm/sway.git
synced 2024-11-24 08:51:27 +00:00
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 2c0f68b7c6
)
This commit is contained in:
parent
7693682b73
commit
2921b232be
|
@ -1018,6 +1018,7 @@ static void output_manager_apply(struct sway_server *server,
|
||||||
oc->y = config_head->state.y;
|
oc->y = config_head->state.y;
|
||||||
oc->transform = config_head->state.transform;
|
oc->transform = config_head->state.transform;
|
||||||
oc->scale = config_head->state.scale;
|
oc->scale = config_head->state.scale;
|
||||||
|
oc->adaptive_sync = config_head->state.adaptive_sync_enabled;
|
||||||
|
|
||||||
if (test_only) {
|
if (test_only) {
|
||||||
ok &= test_output_config(oc, output);
|
ok &= test_output_config(oc, output);
|
||||||
|
|
Loading…
Reference in a new issue