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.
pull/3919/head
Rudy Dellomas III 2024-04-02 00:38:13 +10:00
parent b00a5fc4a5
commit 68a704154f
1 changed files with 4 additions and 1 deletions

View File

@ -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);