mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -04:00
seat/keyboard: drop unnecessary check in handle_keyboard_keymap()
This condition always holds true: the listener is set up for state->keyboard.
This commit is contained in:
parent
c76a232835
commit
dc5996a8b4
1 changed files with 2 additions and 5 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue