From b614ded3fcb022c4567bbee932a6df3e83acaff6 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 16 Mar 2020 23:55:51 +0100 Subject: backend/wayland: close keymap FD We don't actually need the keymap. We need to close the FD or we will run out of FDs. --- backend/wayland/seat.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/wayland/seat.c b/backend/wayland/seat.c index edb690b8..b995dbe5 100644 --- a/backend/wayland/seat.c +++ b/backend/wayland/seat.c @@ -5,6 +5,7 @@ #include #include #include +#include #include @@ -193,7 +194,7 @@ static const struct wl_pointer_listener pointer_listener = { static void keyboard_handle_keymap(void *data, struct wl_keyboard *wl_keyboard, uint32_t format, int32_t fd, uint32_t size) { - // TODO: set keymap + close(fd); } static uint32_t get_current_time_msec(void) { -- cgit v1.2.3