aboutsummaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-10-10 20:23:08 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-10-10 20:23:08 +0000
commit8e161ed4e96919fdfb47f90467ab6d3a328d1064 (patch)
tree86d4c0cd94d4c99fc084b490e149640fa1817543 /config.c
parentMerge branch 'bind-shift+insert-to-primary-paste' into master (diff)
parentdoc: foot.ini.t: csd.preferred: repair indentation of “default: _server_” (diff)
Merge branch 'no-window-decorations' into master
Closes #163
Diffstat (limited to 'config.c')
-rw-r--r--config.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/config.c b/config.c
index 1548c102..bcebcb2a 100644
--- a/config.c
+++ b/config.c
@@ -813,8 +813,12 @@ parse_section_csd(const char *key, const char *value, struct config *conf,
conf->csd.preferred = CONF_CSD_PREFER_SERVER;
else if (strcmp(value, "client") == 0)
conf->csd.preferred = CONF_CSD_PREFER_CLIENT;
+ else if (strcmp(value, "none") == 0)
+ conf->csd.preferred = CONF_CSD_PREFER_NONE;
else {
- LOG_AND_NOTIFY_ERR("%s:%d: csd.preferred: expected either 'server' or 'client'", path, lineno);
+ LOG_AND_NOTIFY_ERR(
+ "%s:%d: csd.preferred: expected either "
+ "'server', 'client' or 'none'", path, lineno);
return false;
}
}