config: add <core><adaptiveSync>

This commit is contained in:
Johan Malm 2021-10-22 20:23:09 +01:00
parent d9253331cd
commit c48b9d44d1
6 changed files with 10 additions and 7 deletions

View file

@ -994,8 +994,9 @@ new_output_notify(struct wl_listener *listener, void *data)
* TODO: support configuration in run-time
*/
if (getenv("LABWC_ADAPTIVE_SYNC")) {
wlr_log(WLR_INFO, "enable adaptive sync on %s", wlr_output->name);
if (rc.adaptive_sync) {
wlr_log(WLR_INFO, "enable adaptive sync on %s",
wlr_output->name);
wlr_output_enable_adaptive_sync(wlr_output, true);
}
wlr_output_layout_add_auto(server->output_layout, wlr_output);