From: Po Lu Date: Sun, 21 Nov 2021 13:14:06 +0000 (+0000) Subject: Fix double and triple click in Haiku. X-Git-Tag: emacs-29.0.90~2852^2~135 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6d90444ba0f5202553cf8c245b809c09fce1a317;p=emacs.git Fix double and triple click in Haiku. * src/haikuterm.c (haiku_read_socket): Record timestamp in events. --- diff --git a/src/haikuterm.c b/src/haikuterm.c index 67c202d97a2..61920dbecef 100644 --- a/src/haikuterm.c +++ b/src/haikuterm.c @@ -3185,12 +3185,16 @@ haiku_read_socket (struct terminal *terminal, struct input_event *hold_quit) if (inev.kind != NO_EVENT) { + if (inev.kind != HELP_EVENT) + inev.timestamp = time (NULL); kbd_buffer_store_event_hold (&inev, hold_quit); ++message_count; } if (inev2.kind != NO_EVENT) { + if (inev.kind != HELP_EVENT) + inev.timestamp = time (NULL); kbd_buffer_store_event_hold (&inev2, hold_quit); ++message_count; }