From c0bdced263933a059db0353cf24d757679fbf252 Mon Sep 17 00:00:00 2001 From: Ryan Date: Wed, 13 Sep 2023 01:53:17 -0400 Subject: [PATCH] apply scrollback-mouse-increment patch Tweak the config to be a bit better organized. --- config.def.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/config.def.h b/config.def.h index 6627444..5503107 100644 --- a/config.def.h +++ b/config.def.h @@ -170,14 +170,19 @@ static unsigned int defaultattr = 11; */ static uint forcemousemod = ShiftMask; +/* + * The number of lines to scroll by when using the mouse wheel. + */ +const unsigned int mousescrollrate = 1; + /* * Internal mouse shortcuts. * Beware that overloading Button1 will disable the selection. */ static MouseShortcut mshortcuts[] = { /* mask button function argument release */ - { XK_ANY_MOD, Button4, kscrollup, {.i = 1}, 0, /* !alt */ -1 }, - { XK_ANY_MOD, Button5, kscrolldown, {.i = 1}, 0, /* !alt */ -1 }, + { XK_ANY_MOD, Button4, kscrollup, {.i = mousescrollrate}, 0, /* !alt */ -1 }, + { XK_ANY_MOD, Button5, kscrolldown, {.i = mousescrollrate}, 0, /* !alt */ -1 }, { XK_ANY_MOD, Button2, selpaste, {.i = 0}, 1 }, { ShiftMask, Button4, ttysend, {.s = "\033[5;2~"} }, { XK_ANY_MOD, Button4, ttysend, {.s = "\031"} },