diff options
| author | Avi Halachmi (:avih) <avihpit@yahoo.com> | 2019-10-11 02:26:10 +0300 |
|---|---|---|
| committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2019-10-13 21:46:31 +0200 |
| commit | d2b75db8d7519a20af8bf09e9c205507f9ff828c (patch) | |
| tree | 1e17b52c9f25afa685e2e3e5ce7fbd23ef7127d6 /config.def.h | |
| parent | mouse shortcuts: allow override for all shortcuts (diff) | |
| download | st-d2b75db8d7519a20af8bf09e9c205507f9ff828c.tar.gz st-d2b75db8d7519a20af8bf09e9c205507f9ff828c.zip | |
mouse shortcuts: don't hardcode selpaste
Because selpaste is activated on release, a release flag was added to
mouse shortcuts which controls whether activation is on press/release,
and selpaste binding to button2 was moved to config.h .
button1 remains the only hardcoded mouse button - for selection + copy.
Diffstat (limited to '')
| -rw-r--r-- | config.def.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/config.def.h b/config.def.h index a0a0d2d..546edda 100644 --- a/config.def.h +++ b/config.def.h | |||
| @@ -162,7 +162,8 @@ static uint forcemousemod = ShiftMask; | |||
| 162 | * Beware that overloading Button1 will disable the selection. | 162 | * Beware that overloading Button1 will disable the selection. |
| 163 | */ | 163 | */ |
| 164 | static MouseShortcut mshortcuts[] = { | 164 | static MouseShortcut mshortcuts[] = { |
| 165 | /* mask button function argument */ | 165 | /* mask button function argument release */ |
| 166 | { XK_ANY_MOD, Button2, selpaste, {.i = 0}, 1 }, | ||
| 166 | { XK_ANY_MOD, Button4, ttysend, {.s = "\031"} }, | 167 | { XK_ANY_MOD, Button4, ttysend, {.s = "\031"} }, |
| 167 | { XK_ANY_MOD, Button5, ttysend, {.s = "\005"} }, | 168 | { XK_ANY_MOD, Button5, ttysend, {.s = "\005"} }, |
| 168 | }; | 169 | }; |
