st-scrollback-mouse-increment-0.9.2.diff (1252B)
1 From bf7f0cf6ff2b47c65f750de6e30dce09a34f9201 Mon Sep 17 00:00:00 2001 2 From: Jernej Jakob <jernej.jakob@gmail.com> 3 Date: Mon, 1 Jul 2024 14:02:36 +0200 4 Subject: [PATCH] [st][patch] Update st-scrollback-mouse-increment for 0.9.2 5 6 --- 7 config.def.h | 5 +++-- 8 1 file changed, 3 insertions(+), 2 deletions(-) 9 10 diff --git a/config.def.h b/config.def.h 11 index d259675..0c427ee 100644 12 --- a/config.def.h 13 +++ b/config.def.h 14 @@ -174,10 +174,11 @@ static uint forcemousemod = ShiftMask; 15 * Internal mouse shortcuts. 16 * Beware that overloading Button1 will disable the selection. 17 */ 18 +const unsigned int mousescrollincrement = 1; 19 static MouseShortcut mshortcuts[] = { 20 /* mask button function argument release */ 21 - { ShiftMask, Button4, kscrollup, {.i = 1} }, 22 - { ShiftMask, Button5, kscrolldown, {.i = 1} }, 23 + { ShiftMask, Button4, kscrollup, {.i = mousescrollincrement} }, 24 + { ShiftMask, Button5, kscrolldown, {.i = mousescrollincrement} }, 25 { XK_ANY_MOD, Button2, selpaste, {.i = 0}, 1 }, 26 { ShiftMask, Button4, ttysend, {.s = "\033[5;2~"} }, 27 { XK_ANY_MOD, Button4, ttysend, {.s = "\031"} }, 28 -- 29 2.44.2 30