]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix double and triple click in Haiku.
authorPo Lu <luangruo@yahoo.com>
Sun, 21 Nov 2021 13:14:06 +0000 (13:14 +0000)
committerPo Lu <luangruo@yahoo.com>
Sun, 21 Nov 2021 13:14:06 +0000 (13:14 +0000)
* src/haikuterm.c (haiku_read_socket): Record timestamp
in events.

src/haikuterm.c

index 67c202d97a2b5802432b4a9b46845dae5505ca1b..61920dbecef1344ce245777d3148d1454d13a34a 100644 (file)
@@ -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;
        }