Skip to content
This repository has been archived by the owner on Nov 1, 2021. It is now read-only.

Commit

Permalink
backend/wayland: close keymap FD
Browse files Browse the repository at this point in the history
We don't actually need the keymap. We need to close the FD or we will
run out of FDs.
  • Loading branch information
emersion authored and ddevault committed Mar 17, 2020
1 parent 5ee52a3 commit b614ded
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/wayland/seat.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>

#include <wayland-client.h>

Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit b614ded

Please sign in to comment.