diff options
| author | Douglas Rumbaugh <doug@douglasrumbaugh.com> | 2023-01-04 13:26:47 -0500 |
|---|---|---|
| committer | Douglas Rumbaugh <doug@douglasrumbaugh.com> | 2023-01-04 13:31:13 -0500 |
| commit | 150dacf63c03d112ead9aa25c374373d785d202e (patch) | |
| tree | af9d250991a320976091104689fcc7e6f41c35c9 /config.def.h | |
| parent | 7fd24679e974c55b7593bb3119f887a155928ed3 (diff) | |
| download | st-150dacf63c03d112ead9aa25c374373d785d202e.tar.gz | |
Applied mouse scrolling patches
Diffstat (limited to 'config.def.h')
| -rw-r--r-- | config.def.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h index cbbec6e..8989d7a 100644 --- a/config.def.h +++ b/config.def.h @@ -222,8 +222,11 @@ ResourcePref resources[] = { * Internal mouse shortcuts. * Beware that overloading Button1 will disable the selection. */ +const unsigned int mousescrollincrement = 3; static MouseShortcut mshortcuts[] = { /* mask button function argument release */ + { XK_ANY_MOD, Button4, kscrollup, {.i = mousescrollincrement}, 0, /* !alt */ -1 }, + { XK_ANY_MOD, 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"} }, |