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.
This commit is contained in:
Simon Ser 2020-03-16 23:55:51 +01:00 committed by Drew DeVault
parent 5ee52a3ab9
commit b614ded3fc
1 changed files with 2 additions and 1 deletions

View File

@ -5,6 +5,7 @@
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <wayland-client.h>
@ -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) {