summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMalfurious <m@lfurio.us>2020-06-26 19:52:30 -0400
committerMalfurious <m@lfurio.us>2024-08-12 13:16:51 -0400
commitefcbd7cb7cef5b418212fb6e6cf2e39860facfbb (patch)
tree2e5df57d3e14a82ba05b4cec55708740bdce5840
parent73ef9f60226e1b6538de46b9000dfbd239c97ed2 (diff)
downloadst-efcbd7cb7cef5b418212fb6e6cf2e39860facfbb.tar.gz
st-efcbd7cb7cef5b418212fb6e6cf2e39860facfbb.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"} },