diff options
author | Mattias Andrée <maandree@kth.se> | 2021-04-10 19:20:30 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-04-10 19:20:30 +0200 |
commit | 0edd4e9312117009756ca6185c845a71bdd58fb9 (patch) | |
tree | 7746717657b05109cc7e1fa1b328903ee64ed6c2 /libterminput.h | |
parent | Add tests for mouse events (diff) | |
download | libterminput-0edd4e9312117009756ca6185c845a71bdd58fb9.tar.gz libterminput-0edd4e9312117009756ca6185c845a71bdd58fb9.tar.bz2 libterminput-0edd4e9312117009756ca6185c845a71bdd58fb9.tar.xz |
Fix mouse tracking support and add more tests for it
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | libterminput.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libterminput.h b/libterminput.h index 6029305..d5c5439 100644 --- a/libterminput.h +++ b/libterminput.h @@ -199,7 +199,7 @@ int libterminput_read(int fd, union libterminput_input *input, struct libterminp inline int libterminput_is_ready(union libterminput_input *input, struct libterminput_state *ctx) { - if (!ctx->inited || ctx->paused) + if (!ctx->inited || ctx->paused || ctx->mouse_tracking) return 0; if (input->type == LIBTERMINPUT_KEYPRESS && input->keypress.times > 1) return 1; |