The distance in pixels between views and output edges when using
movement actions, for example MoveToEdge. Default is 0.
+*<core><adaptiveSync>* [yes|no]
+ Enable adaptive sync. Default is no.
+
# FOCUS
*<focus><followMouse>* [yes|no]
XKB_DEFAULT_LAYOUT=se
```
-The following environment variables are supported by labwc:
-
-*LABWC_ADAPTIVE_SYNC*
- Set to 1 enable adaptive sync
-
# SEE ALSO
labwc(1)
<core>
<decoration>server</decoration>
<gap>0</gap>
+ <adaptiveSync>no</adaptiveSync>
</core>
<!--
struct rcxml {
bool xdg_shell_server_side_deco;
int gap;
+ bool adaptive_sync;
bool focus_follow_mouse;
bool raise_on_focus;
char *theme_name;
}
} 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")) {
* 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);