only call wlr_seat_keyboard_notify_enter() if a keyboard is found

This commit is contained in:
Leonardo Hernández Hernández 2022-07-07 00:21:51 -05:00
parent 87fc3a58ab
commit 8e03bce621
No known key found for this signature in database
GPG Key ID: E538897EE11B9624
1 changed files with 0 additions and 4 deletions

4
dwl.c
View File

@ -613,8 +613,6 @@ arrangelayers(Monitor *m)
if (kb)
wlr_seat_keyboard_notify_enter(seat, layersurface->layer_surface->surface,
kb->keycodes, kb->num_keycodes, &kb->modifiers);
else
wlr_seat_keyboard_notify_enter(seat, layersurface->layer_surface->surface, NULL, 0, NULL);
return;
}
}
@ -1185,8 +1183,6 @@ focusclient(Client *c, int lift)
if (kb)
wlr_seat_keyboard_notify_enter(seat, client_surface(c),
kb->keycodes, kb->num_keycodes, &kb->modifiers);
else
wlr_seat_keyboard_notify_enter(seat, client_surface(c), NULL, 0, NULL);
/* Activate the new client */
client_activate_surface(client_surface(c), 1);