From 62924cc52385357f9c865379ee9883107d0f7d63 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Sat, 7 Aug 2021 13:48:04 +0200 Subject: keyboard: add wlr_keyboard.keymap_fd This exposes a read-only FD with the keymap. --- include/wlr/types/wlr_keyboard.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/wlr/types/wlr_keyboard.h b/include/wlr/types/wlr_keyboard.h index b5111462..ea16c432 100644 --- a/include/wlr/types/wlr_keyboard.h +++ b/include/wlr/types/wlr_keyboard.h @@ -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]; -- cgit v1.2.3