diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-04-04 09:57:33 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-04-04 09:57:33 +0000 |
| commit | 2344f153d938d4d49ccfbd60fb25e1b2170209b8 (patch) | |
| tree | 978949012a95a64d2607189ea4b0fe05082d53f0 /input.c | |
| parent | input: only cancel selection on left mouse button clicks (diff) | |
input: hardcoded left mouse button handler requires click-count <= 3
This enables user mappings for the left mouse button with click count
> 3
I.e. it is now possible to create custom quad-click mappings (except
we don't yet support this in footrc).
Diffstat (limited to 'input.c')
| -rw-r--r-- | input.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1174,7 +1174,7 @@ wl_pointer_button(void *data, struct wl_pointer *wl_pointer, switch (state) { case WL_POINTER_BUTTON_STATE_PRESSED: { - if (button == BTN_LEFT) { + if (button == BTN_LEFT && wayl->mouse.count <= 3) { selection_cancel(term); switch (wayl->mouse.count) { |
