aboutsummaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-04-04 09:57:33 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-04-04 09:57:33 +0000
commit2344f153d938d4d49ccfbd60fb25e1b2170209b8 (patch)
tree978949012a95a64d2607189ea4b0fe05082d53f0 /input.c
parentinput: 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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/input.c b/input.c
index 1b1a7fff..23a0c3a7 100644
--- a/input.c
+++ b/input.c
@@ -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) {