Add scrollback mouse patch

This commit is contained in:
David Holland 2020-08-03 15:01:14 +02:00
parent c1b7d57d10
commit 411d5031dc
Signed by: DustVoice
GPG key ID: 47068995A14EDCA9
3 changed files with 16 additions and 1 deletions

2
.gitignore vendored
View file

@ -22,4 +22,4 @@
!/st-dracula-0.8.2.diff
!/st-hidecursor-0.8.3.diff
!/st-scrollback-20200419-72e3f6c.diff
!/st-universcroll-0.8.4.diff
!/st-scrollback-mouse-20191024-a2c479c.diff

View file

@ -181,6 +181,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"} },

View file

@ -0,0 +1,13 @@
diff --git a/config.def.h b/config.def.h
index ec1b576..4b3bf15 100644
--- a/config.def.h
+++ b/config.def.h
@@ -163,6 +163,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 },
{ XK_ANY_MOD, Button4, ttysend, {.s = "\031"} },
{ XK_ANY_MOD, Button5, ttysend, {.s = "\005"} },