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
1 changed files with 1 additions and 1 deletions

View File

@ -164,7 +164,7 @@ struct termo_key
// TERMO_TYPE_MOUSE // TERMO_TYPE_MOUSE
// opaque, see termo_interpret_mouse() // opaque, see termo_interpret_mouse()
struct { uint16_t x, y, info; } mouse; struct { int16_t x, y, info; } mouse;
} code; } code;
int modifiers; int modifiers;