mirror of
https://github.com/labwc/labwc.git
synced 2025-11-03 09:01:51 -05:00
Reconfigure inputs
This commit is contained in:
parent
326b4aebd1
commit
d4e1791c88
3 changed files with 19 additions and 0 deletions
17
src/seat.c
17
src/seat.c
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue