Display the first specified XKBLAYOUT as the active one, instead of the last

This fixes https://bugzilla.redhat.com/show_bug.cgi?id=2416197
This corrects the keymap display when users specify multiple keymaps
in /etc/vconsole.conf
This commit is contained in:
n3rdopolis 2025-12-04 08:31:36 -05:00 committed by Hans de Goede
parent 3718895891
commit b609687e8d

View file

@ -531,7 +531,7 @@ ply_input_device_get_keymap (ply_input_device_t *input_device)
*
* This string shouldn't be used as a unique indentifier for a keymap
*/
return xkb_keymap_layout_get_name (input_device->keymap, num_indices - 1);
return xkb_keymap_layout_get_name (input_device->keymap, 0);
}
int