From 79967d9ad4dafaeed3e48ef4d326f1b6d165708a Mon Sep 17 00:00:00 2001 From: speedie Date: Sat, 22 Jul 2023 18:32:57 +0200 Subject: [PATCH] Last commit for binds.conf too --- docs/spmenu.conf | 2 +- libs/conf/config.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/spmenu.conf b/docs/spmenu.conf index e71d9da..63a46df 100644 --- a/docs/spmenu.conf +++ b/docs/spmenu.conf @@ -270,7 +270,7 @@ spmenu = { { click = "None"; button = "Scroll Down"; function = "movenext"; argument = "0"; }, // Scroll Down: Move to the next page { - scrolldistance = 512; // Distance to scroll for a scroll action to count (num) + scrolldistance = 512; // Distance to scroll for a scroll action to count. Wayland only (num) ignoreglobalmouse = 1; // Ignore hardcoded mouse binds (0/1) } ); diff --git a/libs/conf/config.c b/libs/conf/config.c index 8961d91..412ab6f 100644 --- a/libs/conf/config.c +++ b/libs/conf/config.c @@ -203,6 +203,7 @@ int bind_init(void) { } config_setting_lookup_int(conf, "ignoreglobalmouse", &sp.ignoreglobalmouse); + config_setting_lookup_int(conf, "scrolldistance", &scrolldistance); } }