Reconfigure inputs

This commit is contained in:
ARDiDo 2021-10-10 12:03:18 -04:00 committed by Johan Malm
parent 326b4aebd1
commit d4e1791c88
3 changed files with 19 additions and 0 deletions

View file

@ -192,6 +192,23 @@ seat_finish(struct server *server)
wlr_cursor_destroy(seat->cursor);
}
void
seat_reconfigure(struct server *server)
{
struct seat *seat = &server->seat;
struct input *input;
struct wlr_keyboard *kb = &seat->keyboard_group->keyboard;
wl_list_for_each(input, &seat->inputs, link) {
/* We don't configure keyboards by libinput, so skip them */
if (wlr_input_device_is_libinput(input->wlr_input_device) &&
input->wlr_input_device->type ==
WLR_INPUT_DEVICE_POINTER) {
configure_libinput(input->wlr_input_device);
}
}
wlr_keyboard_set_repeat_info(kb, rc.repeat_rate, rc.repeat_delay);
}
void
seat_focus_surface(struct seat *seat, struct wlr_surface *surface)
{