From 965205b4b6572630f6d5ccbd7e82119cb5df41a9 Mon Sep 17 00:00:00 2001 From: Michael Peters Date: Thu, 13 Oct 2022 12:25:37 -0700 Subject: [PATCH] mouse increment (bad) --- config.def.h | 14 ++++++++------ config.h | 14 ++++++++------ .../st-scrollback-mouse-increment-0.8.2.diff | 0 3 files changed, 16 insertions(+), 12 deletions(-) rename patches/{todo => in-progress}/st-scrollback-mouse-increment-0.8.2.diff (100%) diff --git a/config.def.h b/config.def.h index 2f1b24c..4151423 100644 --- a/config.def.h +++ b/config.def.h @@ -190,12 +190,14 @@ static uint forcemousemod = ShiftMask; * Beware that overloading Button1 will disable the selection. */ static MouseShortcut mshortcuts[] = { - /* mask button function argument release */ - { XK_ANY_MOD, Button2, selpaste, {.i = 0}, 1 }, - { ShiftMask, Button4, ttysend, {.s = "\033[5;2~"} }, - { XK_ANY_MOD, Button4, ttysend, {.s = "\031"} }, - { ShiftMask, Button5, ttysend, {.s = "\033[6;2~"} }, - { XK_ANY_MOD, Button5, ttysend, {.s = "\005"} }, + /* mask button function argument release */ + { XK_ANY_MOD, Button2, selpaste, {.i = 0}, 1 }, + { Button4, ShiftMask, kscrollup, {.i = 3} }, + { Button5, ShiftMask, kscrolldown, {.i = 3} }, + { ShiftMask, Button4, ttysend, {.s = "\033[5;2~"} }, + { XK_ANY_MOD, Button4, ttysend, {.s = "\031"} }, + { ShiftMask, Button5, ttysend, {.s = "\033[6;2~"} }, + { XK_ANY_MOD, Button5, ttysend, {.s = "\005"} }, }; /* Internal keyboard shortcuts. */ diff --git a/config.h b/config.h index e8d6e84..c7f8630 100644 --- a/config.h +++ b/config.h @@ -187,12 +187,14 @@ static uint forcemousemod = ShiftMask; * Beware that overloading Button1 will disable the selection. */ static MouseShortcut mshortcuts[] = { - /* mask button function argument release */ - { XK_ANY_MOD, Button2, selpaste, {.i = 0}, 1 }, - { ShiftMask, Button4, ttysend, {.s = "\033[5;2~"} }, - { XK_ANY_MOD, Button4, ttysend, {.s = "\031"} }, - { ShiftMask, Button5, ttysend, {.s = "\033[6;2~"} }, - { XK_ANY_MOD, Button5, ttysend, {.s = "\005"} }, + /* mask button function argument release */ + { XK_ANY_MOD, Button2, selpaste, {.i = 0}, 1 }, + { Button4, ShiftMask, kscrollup, {.i = 3} }, + { Button5, ShiftMask, kscrolldown, {.i = 3} }, + { ShiftMask, Button4, ttysend, {.s = "\033[5;2~"} }, + { XK_ANY_MOD, Button4, ttysend, {.s = "\031"} }, + { ShiftMask, Button5, ttysend, {.s = "\033[6;2~"} }, + { XK_ANY_MOD, Button5, ttysend, {.s = "\005"} }, }; /* Internal keyboard shortcuts. */ diff --git a/patches/todo/st-scrollback-mouse-increment-0.8.2.diff b/patches/in-progress/st-scrollback-mouse-increment-0.8.2.diff similarity index 100% rename from patches/todo/st-scrollback-mouse-increment-0.8.2.diff rename to patches/in-progress/st-scrollback-mouse-increment-0.8.2.diff