From 5a80bceec9c3fcc304d8dde1c10f16a9adde8598 Mon Sep 17 00:00:00 2001 From: Přemysl Janouch Date: Wed, 19 Nov 2014 00:45:35 +0100 Subject: Make mouse data signed Because urxvt can output zero coordinates, meaning -1. --- termo.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/termo.h b/termo.h index ee24d87..f6a82b1 100644 --- a/termo.h +++ b/termo.h @@ -164,7 +164,7 @@ struct termo_key // TERMO_TYPE_MOUSE // opaque, see termo_interpret_mouse() - struct { uint16_t x, y, info; } mouse; + struct { int16_t x, y, info; } mouse; } code; int modifiers; -- cgit v1.2.3-70-g09d2