]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't set button event modifiers twice on Haiku
authorPo Lu <luangruo@yahoo.com>
Mon, 22 Nov 2021 06:33:22 +0000 (06:33 +0000)
committerPo Lu <luangruo@yahoo.com>
Mon, 22 Nov 2021 06:33:22 +0000 (06:33 +0000)
* src/haikuterm.c (haiku_read_socket): Simplify.

src/haikuterm.c

index 61920dbecef1344ce245777d3148d1454d13a34a..bc956f066a97afefe55c6c31e564dbfb673cb1b1 100644 (file)
@@ -2858,9 +2858,6 @@ haiku_read_socket (struct terminal *terminal, struct input_event *hold_quit)
            inev.arg = tab_bar_arg;
            inev.code = b->btn_no;
 
-           inev.modifiers |= type == BUTTON_UP ?
-             up_modifier : down_modifier;
-
            XSETINT (inev.x, b->x);
            XSETINT (inev.y, b->y);