config: support scroll-factor

Fixes: issue #846
This commit is contained in:
Johan Malm 2023-03-25 15:57:47 +00:00 committed by Johan Malm
parent 753aef9d78
commit a8e0248f47
5 changed files with 10 additions and 1 deletions

View file

@ -420,6 +420,8 @@ entry(xmlNode *node, char *nodename, char *content)
} else {
wlr_log(WLR_ERROR, "invalid doubleClickTime");
}
} else if (!strcasecmp(nodename, "scrollFactor.mouse")) {
rc.scroll_factor = atof(content);
} else if (!strcasecmp(nodename, "name.context.mouse")) {
current_mouse_context = content;
current_mousebind = NULL;
@ -573,6 +575,7 @@ rcxml_init(void)
init_font_defaults(&rc.font_osd);
rc.doubleclick_time = 500;
rc.scroll_factor = 1.0;
rc.repeat_rate = 25;
rc.repeat_delay = 600;
rc.screen_edge_strength = 20;