aboutsummaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-09-16 06:05:56 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-09-16 06:05:56 +0000
commit2593459b55299f74f8e40e2879c250dff1d2e09f (patch)
tree7ed5312ecf9eb6b02947898978c3848d2ee3c751 /config.c
parentmeson/pkgbuild: require fcft-2.2.90 (diff)
parentdoc: foot.ini: alternate-scroll-mode: fix highlighting of CSI escape (diff)
Merge branch 'configurable-alternate-scroll-mode' into master
Closes #135
Diffstat (limited to 'config.c')
-rw-r--r--config.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/config.c b/config.c
index de4e24c9..418c9c37 100644
--- a/config.c
+++ b/config.c
@@ -764,6 +764,9 @@ parse_section_mouse(const char *key, const char *value, struct config *conf,
if (strcmp(key, "hide-when-typing") == 0)
conf->mouse.hide_when_typing = str_to_bool(value);
+ else if (strcmp(key, "alternate-scroll-mode") == 0)
+ conf->mouse.alternate_scroll_mode = str_to_bool(value);
+
else {
LOG_AND_NOTIFY_ERR("%s:%d: [mouse]: %s: invalid key", path, lineno, key);
return false;
@@ -1907,6 +1910,7 @@ config_load(struct config *conf, const char *conf_path,
},
.mouse = {
.hide_when_typing = false,
+ .alternate_scroll_mode = true,
},
.csd = {
.preferred = CONF_CSD_PREFER_SERVER,