summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorPaul "LeoNerd" Evans <leonerd@leonerd.org.uk>2019-06-27 22:21:31 +0100
committerPaul "LeoNerd" Evans <leonerd@leonerd.org.uk>2019-06-27 22:21:31 +0100
commit66c7b3a9a1d4e34fbab180c899bd8f5706758dc5 (patch)
tree8d27381be3eebd0a81ea4fe4e9a2e67bdb52ea9b /t
parentd750da70b59d0ba38ce4c7dc7701d88356aa710e (diff)
Account for X10's lack of mouse button reporting on release events, by tracking which buttons are held to report them all released (thanks Ninji)
Diffstat (limited to 't')
-rw-r--r--t/15term-input.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/t/15term-input.c b/t/15term-input.c
index 27e2d68..2634c7e 100644
--- a/t/15term-input.c
+++ b/t/15term-input.c
@@ -139,6 +139,14 @@ int main(int argc, char *argv[])
is_int(mousecol, 0, "mousecol after mouse button press");
is_int(mousemod, 0, "mousemod after mouse button press");
+ tickit_term_input_push_bytes(tt, "\e[M#!!", 6);
+
+ is_int(mousetype, TICKIT_MOUSEEV_RELEASE, "mousetype after mouse button release");
+ is_int(mousebutton, 1, "mousebutton after mouse button release");
+ is_int(mouseline, 0, "mouseline after mouse button release");
+ is_int(mousecol, 0, "mousecol after mouse button release");
+ is_int(mousemod, 0, "mousemod after mouse button release");
+
tickit_term_input_push_bytes(tt, "\e[M`!!", 6);
is_int(mousetype, TICKIT_MOUSEEV_WHEEL, "mousetype after mouse wheel up");