aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2020-03-16 23:55:51 +0100
committerDrew DeVault <sir@cmpwn.com>2020-03-17 13:37:53 +0100
commitb614ded3fcb022c4567bbee932a6df3e83acaff6 (patch)
tree9fff666f378c8b9a424475816a58dfa51f02d666
parent5ee52a3ab9a12adb157738dc3fba72137c3c6879 (diff)
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.
-rw-r--r--backend/wayland/seat.c3
1 files changed, 2 insertions, 1 deletions
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 <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) {