From dc5996a8b45362a3add882f4510b535388b17e01 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 27 May 2024 00:51:56 +0200 Subject: [PATCH] seat/keyboard: drop unnecessary check in handle_keyboard_keymap() This condition always holds true: the listener is set up for state->keyboard. --- types/seat/wlr_seat_keyboard.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/types/seat/wlr_seat_keyboard.c b/types/seat/wlr_seat_keyboard.c index dcbc0a3d..cae4c0db 100644 --- a/types/seat/wlr_seat_keyboard.c +++ b/types/seat/wlr_seat_keyboard.c @@ -89,11 +89,8 @@ static void handle_keyboard_keymap(struct wl_listener *listener, void *data) { struct wlr_seat_keyboard_state *state = wl_container_of(listener, state, keyboard_keymap); struct wlr_seat_client *client; - struct wlr_keyboard *keyboard = data; - if (keyboard == state->keyboard) { - wl_list_for_each(client, &state->seat->clients, link) { - seat_client_send_keymap(client, state->keyboard); - } + wl_list_for_each(client, &state->seat->clients, link) { + seat_client_send_keymap(client, state->keyboard); } }