From 68a704154fe6fdc467b83749762ab500dff8a8b0 Mon Sep 17 00:00:00 2001 From: Rudy Dellomas III Date: Tue, 2 Apr 2024 00:38:13 +1000 Subject: [PATCH] Detect non-double click mouse down events that occur before timeout Mouse down events which occurred before the double click timeout would be set to "NOTYPE" if they weren't a valid double click, causing rapid presses of different buttons to be lost. --- server-client.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server-client.c b/server-client.c index af7f42e6..449a9bcc 100644 --- a/server-client.c +++ b/server-client.c @@ -644,7 +644,10 @@ server_client_check_mouse(struct client *c, struct key_event *event) log_debug("triple-click at %u,%u", x, y); goto have_event; } - } else { + } + + /* DOWN is the only remaining event type. */ + if (type == NOTYPE) { type = DOWN; x = m->x, y = m->y, b = m->b; log_debug("down at %u,%u", x, y);