summaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
authorzachir <zachir@librem.one>2023-02-20 03:26:09 -0600
committerzachir <zachir@librem.one>2023-02-20 03:26:09 -0600
commit2f61d0c62db903f0f6836ed3e5c80f9ee93b6971 (patch)
treeec981f2d7388913531f6f88137b294a93549f80a /config.def.h
parent5b096d0b13e28811bb810dd6fcc0b3d0ffd714b5 (diff)
add scrollback-mouse-increment patch
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/config.def.h b/config.def.h
index a7ab29f..7baf499 100644
--- a/config.def.h
+++ b/config.def.h
@@ -200,10 +200,11 @@ static uint forcemousemod = ShiftMask;
* Internal mouse shortcuts.
* Beware that overloading Button1 will disable the selection.
*/
+const unsigned int mousescrollincrement = 1;
static MouseShortcut mshortcuts[] = {
/* mask button function argument release */
- { 0, Button4, kscrollup, {.i = 1}, 0, /* !alt */ -1 },
- { 0, Button5, kscrolldown, {.i = 1}, 0, /* !alt */ -1 },
+ { 0, Button4, kscrollup, {.i = mousescrollincrement }, 0, /* !alt */ -1 },
+ { 0, Button5, kscrolldown, {.i = mousescrollincrement }, 0, /* !alt */ -1 },
{ XK_ANY_MOD, Button2, selpaste, {.i = 0}, 1 },
{ ShiftMask, Button4, ttysend, {.s = "\033[5;2~"} },
{ XK_ANY_MOD, Button4, ttysend, {.s = "\031"} },