keyboard: add wlr_keyboard.keymap_fd

This exposes a read-only FD with the keymap.
This commit is contained in:
Simon Ser 2021-08-07 13:48:04 +02:00 committed by Kenny Levinsen
parent 55ca93469c
commit 62924cc523
2 changed files with 34 additions and 1 deletions

View file

@ -53,6 +53,7 @@ struct wlr_keyboard {
char *keymap_string;
size_t keymap_size;
int keymap_fd;
struct xkb_keymap *keymap;
struct xkb_state *xkb_state;
xkb_led_index_t led_indexes[WLR_LED_COUNT];