mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
update repeat rate of all keyboard input devices, not keyboard group's keyboard
without this patch, reconfiguring keyboard repeat rate/delay at runtime does not work
This commit is contained in:
parent
11cfc49b12
commit
1c80dbd6ef
1 changed files with 3 additions and 2 deletions
|
|
@ -418,16 +418,17 @@ seat_reconfigure(struct server *server)
|
||||||
{
|
{
|
||||||
struct seat *seat = &server->seat;
|
struct seat *seat = &server->seat;
|
||||||
struct input *input;
|
struct input *input;
|
||||||
struct wlr_keyboard *kb = &seat->keyboard_group->keyboard;
|
|
||||||
wl_list_for_each(input, &seat->inputs, link) {
|
wl_list_for_each(input, &seat->inputs, link) {
|
||||||
/* We don't configure keyboards by libinput, so skip them */
|
/* We don't configure keyboards by libinput, so skip them */
|
||||||
if (wlr_input_device_is_libinput(input->wlr_input_device) &&
|
if (wlr_input_device_is_libinput(input->wlr_input_device) &&
|
||||||
input->wlr_input_device->type ==
|
input->wlr_input_device->type ==
|
||||||
WLR_INPUT_DEVICE_POINTER) {
|
WLR_INPUT_DEVICE_POINTER) {
|
||||||
configure_libinput(input->wlr_input_device);
|
configure_libinput(input->wlr_input_device);
|
||||||
}
|
} else if (input->wlr_input_device->type == WLR_INPUT_DEVICE_KEYBOARD) {
|
||||||
}
|
struct wlr_keyboard *kb = wlr_keyboard_from_input_device(input->wlr_input_device);
|
||||||
wlr_keyboard_set_repeat_info(kb, rc.repeat_rate, rc.repeat_delay);
|
wlr_keyboard_set_repeat_info(kb, rc.repeat_rate, rc.repeat_delay);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue