aboutsummaryrefslogtreecommitdiffstats
path: root/libterminput.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-04-10 19:20:30 +0200
committerMattias Andrée <maandree@kth.se>2021-04-10 19:20:30 +0200
commit0edd4e9312117009756ca6185c845a71bdd58fb9 (patch)
tree7746717657b05109cc7e1fa1b328903ee64ed6c2 /libterminput.h
parentAdd tests for mouse events (diff)
downloadlibterminput-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.h2
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;