mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-04 07:15:29 -04:00
config: add mouse.alternate-scroll-mode option
This option controls the initial state of the Alternate Scroll Mode, and defaults to ‘enabled’.
This commit is contained in:
parent
04c1bab7b0
commit
f2497320c6
6 changed files with 31 additions and 0 deletions
4
config.c
4
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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue