scrolling
This commit is contained in:
parent
947ac128db
commit
540c7f399e
2
Makefile
2
Makefile
|
@ -11,8 +11,6 @@ OBJ = $(SRC:.c=.o)
|
|||
|
||||
all: st
|
||||
|
||||
tooling: compile_commands.json
|
||||
|
||||
config.h:
|
||||
cp config.def.h config.h
|
||||
|
||||
|
|
4
config.h
4
config.h
|
@ -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"} },
|
||||
|
|
Loading…
Reference in New Issue