aboutsummaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-06-22 18:40:28 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-06-22 18:40:28 +0000
commit4c7dbee22131aa0006ae99977f5302b88d37791e (patch)
tree49c88356eb246afa4447212e4a1791789b44d420 /input.c
parentinput: add a key mapping table, mapping key syms to escape sequences (diff)
input: reduce utf8 buffer size
Diffstat (limited to 'input.c')
-rw-r--r--input.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/input.c b/input.c
index b8a35b4e..34b8cf73 100644
--- a/input.c
+++ b/input.c
@@ -225,7 +225,9 @@ keyboard_key(void *data, struct wl_keyboard *wl_keyboard, uint32_t serial,
} else if (sym == XKB_KEY_Escape){
write(term->ptmx, "\x1b", 1);
} else {
- char buf[128] = {0};
+ /* TODO: composing */
+
+ char buf[64] = {0};
int count = xkb_state_key_get_utf8(
term->kbd.xkb_state, key, buf, sizeof(buf));