aboutsummaryrefslogtreecommitdiff
path: root/termo.h
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2014-11-19 00:45:35 +0100
committerPřemysl Janouch <p.janouch@gmail.com>2014-11-19 00:45:35 +0100
commit5a80bceec9c3fcc304d8dde1c10f16a9adde8598 (patch)
treefbc6b8e7aecb75675b4af69f7cfa4691d055db16 /termo.h
parentb8337b5b189b34e5ad0570dc37942650ba53e94b (diff)
downloadtermo-5a80bceec9c3fcc304d8dde1c10f16a9adde8598.tar.gz
termo-5a80bceec9c3fcc304d8dde1c10f16a9adde8598.tar.xz
termo-5a80bceec9c3fcc304d8dde1c10f16a9adde8598.zip
Make mouse data signed
Because urxvt can output zero coordinates, meaning -1.
Diffstat (limited to 'termo.h')
-rw-r--r--termo.h2
1 files changed, 1 insertions, 1 deletions
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;