diff options
author | Avi Halachmi (:avih) <avihpit@yahoo.com> | 2019-10-10 23:02:26 +0300 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2019-10-13 21:46:31 +0200 |
commit | ba7f4d69af62d20e13fea78a408095e017410651 (patch) | |
tree | 332669fc04751b43eae42cf8e074d394203f5f8d /config.def.h | |
parent | 2b8333f553c14c15398e810353e192eb05938580 (diff) | |
download | st-patched-ba7f4d69af62d20e13fea78a408095e017410651.tar.bz2 st-patched-ba7f4d69af62d20e13fea78a408095e017410651.tar.xz st-patched-ba7f4d69af62d20e13fea78a408095e017410651.zip |
mouse shortcuts: allow same functions as kb shortcuts
Previously mouse shortcuts supported only ttywrite.
This required adding an "Arg" function ttysend - which does what the
original mouse shortcuts did.
Diffstat (limited to 'config.def.h')
-rw-r--r-- | config.def.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/config.def.h b/config.def.h index 6ebea98..36ff6ce 100644 --- a/config.def.h +++ b/config.def.h | |||
@@ -155,9 +155,9 @@ static unsigned int defaultattr = 11; | |||
155 | * Beware that overloading Button1 will disable the selection. | 155 | * Beware that overloading Button1 will disable the selection. |
156 | */ | 156 | */ |
157 | static MouseShortcut mshortcuts[] = { | 157 | static MouseShortcut mshortcuts[] = { |
158 | /* button mask string */ | 158 | /* mask button function argument */ |
159 | { Button4, XK_ANY_MOD, "\031" }, | 159 | { XK_ANY_MOD, Button4, ttysend, {.s = "\031"} }, |
160 | { Button5, XK_ANY_MOD, "\005" }, | 160 | { XK_ANY_MOD, Button5, ttysend, {.s = "\005"} }, |
161 | }; | 161 | }; |
162 | 162 | ||
163 | /* Internal keyboard shortcuts. */ | 163 | /* Internal keyboard shortcuts. */ |