summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMalfurious <m@lfurio.us>2020-06-26 19:52:30 -0400
committerMatt Hunter <m@lfurio.us>2026-02-06 00:31:41 -0500
commitec60b75d1a2c943ddcd9aa4553293d8fb91fe67a (patch)
tree5c3780a945f1bdb48f01b56bc173451b0ae35a75
parentd5993588246df84de4e87fe3043bd1b692a22042 (diff)
downloadst-ec60b75d1a2c943ddcd9aa4553293d8fb91fe67a.tar.gz
st-ec60b75d1a2c943ddcd9aa4553293d8fb91fe67a.zip
patch: scrollback-mouse
Apply the following patch on top of the previous to allow scrolling using Shift+MouseWheel.
-rw-r--r--config.def.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h
index e006b5e..1b59ded 100644
--- a/config.def.h
+++ b/config.def.h
@@ -179,6 +179,8 @@ static uint forcemousemod = ShiftMask;
*/
static MouseShortcut mshortcuts[] = {
/* mask button function argument release */
+ { ShiftMask, Button4, kscrollup, {.i = 1} },
+ { ShiftMask, Button5, kscrolldown, {.i = 1} },
{ XK_ANY_MOD, Button2, selpaste, {.i = 0}, 1 },
{ ShiftMask, Button4, ttysend, {.s = "\033[5;2~"} },
{ XK_ANY_MOD, Button4, ttysend, {.s = "\031"} },