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

@ -61,7 +61,6 @@ reload_config_and_theme(void)
regions_reconfigure(g_server);
resize_indicator_reconfigure(g_server);
kde_server_decoration_update_default();
keybind_update_keycodes(g_server);
}
static int