keyboard: set keyboard layout on reconfigure

If keyboard-layout-per-toplevel-window is used, reset the group (index)
for each window on --reconfigure whenever the keymap has changed.

Refactor to use a common configure function for reconfigure and
keyboard-group creation.

Co-authored-by: @johanmalm

Fixes #1407
This commit is contained in:
Simon Long 2024-01-16 12:43:18 +00:00 committed by Johan Malm
parent dfb6664906
commit 8c9be2f0d1
5 changed files with 67 additions and 15 deletions

View file

@ -7,12 +7,12 @@ void
input_handlers_init(struct seat *seat)
{
cursor_init(seat);
keyboard_init(seat);
keyboard_group_init(seat);
}
void
input_handlers_finish(struct seat *seat)
{
cursor_finish(seat);
keyboard_finish(seat);
keyboard_group_finish(seat);
}