From 2344f153d938d4d49ccfbd60fb25e1b2170209b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Sat, 4 Apr 2020 11:57:33 +0200 Subject: [PATCH] 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). --- input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {