From 4437d5b3c3eea76f6e2b0fd4a2ba21c02a098aeb Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Sat, 8 Mar 2025 15:21:28 +0900 Subject: updates --- .../st-scrollback-mouse-increment-0.9.2.diff | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 st/patches/st-scrollback-mouse-increment-0.9.2.diff (limited to 'st/patches/st-scrollback-mouse-increment-0.9.2.diff') diff --git a/st/patches/st-scrollback-mouse-increment-0.9.2.diff b/st/patches/st-scrollback-mouse-increment-0.9.2.diff new file mode 100644 index 0000000..97689d3 --- /dev/null +++ b/st/patches/st-scrollback-mouse-increment-0.9.2.diff @@ -0,0 +1,30 @@ +From bf7f0cf6ff2b47c65f750de6e30dce09a34f9201 Mon Sep 17 00:00:00 2001 +From: Jernej Jakob +Date: Mon, 1 Jul 2024 14:02:36 +0200 +Subject: [PATCH] [st][patch] Update st-scrollback-mouse-increment for 0.9.2 + +--- + config.def.h | 5 +++-- + 1 file changed, 3 insertions(+), 2 deletions(-) + +diff --git a/config.def.h b/config.def.h +index d259675..0c427ee 100644 +--- a/config.def.h ++++ b/config.def.h +@@ -174,10 +174,11 @@ static uint forcemousemod = ShiftMask; + * Internal mouse shortcuts. + * Beware that overloading Button1 will disable the selection. + */ ++const unsigned int mousescrollincrement = 1; + static MouseShortcut mshortcuts[] = { + /* mask button function argument release */ +- { ShiftMask, Button4, kscrollup, {.i = 1} }, +- { ShiftMask, Button5, kscrolldown, {.i = 1} }, ++ { ShiftMask, Button4, kscrollup, {.i = mousescrollincrement} }, ++ { ShiftMask, Button5, kscrolldown, {.i = mousescrollincrement} }, + { XK_ANY_MOD, Button2, selpaste, {.i = 0}, 1 }, + { ShiftMask, Button4, ttysend, {.s = "\033[5;2~"} }, + { XK_ANY_MOD, Button4, ttysend, {.s = "\031"} }, +-- +2.44.2 + -- cgit v1.2.3