mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
config: add <core><adaptiveSync>
This commit is contained in:
parent
d9253331cd
commit
c48b9d44d1
6 changed files with 10 additions and 7 deletions
|
|
@ -292,6 +292,8 @@ entry(xmlNode *node, char *nodename, char *content)
|
|||
}
|
||||
} else if (!strcmp(nodename, "gap.core")) {
|
||||
rc.gap = atoi(content);
|
||||
} else if (!strcmp(nodename, "adaptiveSync.core")) {
|
||||
rc.adaptive_sync = get_bool(content);
|
||||
} else if (!strcmp(nodename, "name.theme")) {
|
||||
rc.theme_name = strdup(content);
|
||||
} else if (!strcmp(nodename, "cornerradius.theme")) {
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue