From 0edd4e9312117009756ca6185c845a71bdd58fb9 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 10 Apr 2021 19:20:30 +0200 Subject: Fix mouse tracking support and add more tests for it MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- libterminput.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libterminput.h') 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; -- cgit v1.2.3-70-g09d2