mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-05 07:15:30 -04:00
input: reduce utf8 buffer size
This commit is contained in:
parent
faf60108f1
commit
4c7dbee221
1 changed files with 3 additions and 1 deletions
4
input.c
4
input.c
|
|
@ -225,7 +225,9 @@ keyboard_key(void *data, struct wl_keyboard *wl_keyboard, uint32_t serial,
|
||||||
} else if (sym == XKB_KEY_Escape){
|
} else if (sym == XKB_KEY_Escape){
|
||||||
write(term->ptmx, "\x1b", 1);
|
write(term->ptmx, "\x1b", 1);
|
||||||
} else {
|
} else {
|
||||||
char buf[128] = {0};
|
/* TODO: composing */
|
||||||
|
|
||||||
|
char buf[64] = {0};
|
||||||
int count = xkb_state_key_get_utf8(
|
int count = xkb_state_key_get_utf8(
|
||||||
term->kbd.xkb_state, key, buf, sizeof(buf));
|
term->kbd.xkb_state, key, buf, sizeof(buf));
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue