Make mouse data signed

Because urxvt can output zero coordinates, meaning -1.
This commit is contained in:
Přemysl Eric Janouch 2014-11-19 00:45:35 +01:00
parent b8337b5b18
commit 5a80bceec9

View File

@ -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;