mirror of
https://github.com/swaywm/sway.git
synced 2025-01-22 08:46:45 +00:00
config/output: test adaptive sync
Required for [1]. [1]: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3637
This commit is contained in:
parent
aaa6c4ac89
commit
07bfeb2abc
|
@ -463,6 +463,10 @@ static void queue_output_config(struct output_config *oc,
|
||||||
sway_log(SWAY_DEBUG, "Set %s adaptive sync to %d", wlr_output->name,
|
sway_log(SWAY_DEBUG, "Set %s adaptive sync to %d", wlr_output->name,
|
||||||
oc->adaptive_sync);
|
oc->adaptive_sync);
|
||||||
wlr_output_state_set_adaptive_sync_enabled(pending, oc->adaptive_sync == 1);
|
wlr_output_state_set_adaptive_sync_enabled(pending, oc->adaptive_sync == 1);
|
||||||
|
if (oc->adaptive_sync == 1 && !wlr_output_test_state(wlr_output, pending)) {
|
||||||
|
sway_log(SWAY_DEBUG, "Adaptive sync failed, ignoring");
|
||||||
|
wlr_output_state_set_adaptive_sync_enabled(pending, false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (oc && oc->render_bit_depth != RENDER_BIT_DEPTH_DEFAULT) {
|
if (oc && oc->render_bit_depth != RENDER_BIT_DEPTH_DEFAULT) {
|
||||||
|
|
Loading…
Reference in a new issue