From f2497320c68978fb4c25226966c11f115cb88e10 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Tue, 15 Sep 2020 19:09:00 +0200 Subject: config: add mouse.alternate-scroll-mode option MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This option controls the initial state of the Alternate Scroll Mode, and defaults to ‘enabled’. --- config.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'config.c') 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, -- cgit v1.3