scrolling

This commit is contained in:
a 2024-05-10 04:11:24 -05:00
parent 947ac128db
commit 540c7f399e
Signed by: a
GPG Key ID: 374BC539FE795AF0
2 changed files with 4 additions and 2 deletions

View File

@ -11,8 +11,6 @@ OBJ = $(SRC:.c=.o)
all: st
tooling: compile_commands.json
config.h:
cp config.def.h config.h

View File

@ -170,12 +170,16 @@ static unsigned int defaultattr = 11;
*/
static uint forcemousemod = ShiftMask;
const unsigned int scrollInterval = 4;
/*
* Internal mouse shortcuts.
* Beware that overloading Button1 will disable the selection.
*/
static MouseShortcut mshortcuts[] = {
/* mask button function argument release */
{ ShiftMask, Button4, kscrollup, {.i = scrollInterval} },
{ ShiftMask, Button5, kscrolldown, {.i = scrollInterval} },
{ XK_ANY_MOD, Button2, selpaste, {.i = 0}, 1 },
{ ShiftMask, Button4, ttysend, {.s = "\033[5;2~"} },
{ XK_ANY_MOD, Button4, ttysend, {.s = "\031"} },