diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-09-25 16:44:26 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2017-09-25 16:44:26 -0400 |
commit | 1ddda91b1b647df339b5b0a6aefa383e48d634d8 (patch) | |
tree | fdf2243b123daeef7ef14a6cacb06f6054982160 | |
parent | e6a6634bc50bc65e5813a9ebc336869e6e85e816 (diff) |
Fix broken keyboard handling
-rw-r--r-- | types/wlr_keyboard.c | 2 | ||||
-rw-r--r-- | types/wlr_seat.c | 2 |
2 files changed, 1 insertions, 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, |