From 1ddda91b1b647df339b5b0a6aefa383e48d634d8 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Mon, 25 Sep 2017 16:44:26 -0400 Subject: [PATCH] Fix broken keyboard handling --- types/wlr_keyboard.c | 2 +- types/wlr_seat.c | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/types/wlr_keyboard.c b/types/wlr_keyboard.c index f9b26a36..057f4ce3 100644 --- a/types/wlr_keyboard.c +++ b/types/wlr_keyboard.c @@ -26,7 +26,7 @@ void wlr_keyboard_update_state(struct wlr_keyboard *keyboard, xkb_state_update_key(keyboard->xkb_state, keycode, event->state == WLR_KEY_PRESSED ? XKB_KEY_DOWN : XKB_KEY_UP); keyboard_led_update(keyboard); - wl_signal_emit(&keyboard->events.key, &event); + wl_signal_emit(&keyboard->events.key, event); } void wlr_keyboard_init(struct wlr_keyboard *kb, diff --git a/types/wlr_seat.c b/types/wlr_seat.c index 4fbe56c2..aaff6005 100644 --- a/types/wlr_seat.c +++ b/types/wlr_seat.c @@ -390,8 +390,6 @@ static void keyboard_key_notify(struct wl_listener *listener, void *data) { if (handle->seat_keyboard != seat_kb) { // TODO: We should probably lift all of the keys set by the other // keyboard - wlr_log(L_DEBUG, "Sending key map %d %zd", - seat_kb->keyboard->keymap_fd, seat_kb->keyboard->keymap_size); wl_keyboard_send_keymap(handle->keyboard, WL_KEYBOARD_KEYMAP_FORMAT_XKB_V1, seat_kb->keyboard->keymap_fd,