mirror of
https://gitlab.freedesktop.org/plymouth/plymouth.git
synced 2026-05-07 03:48:08 +02:00
ply-device-manager: fix default XKB keymap fallback overriding KEYMAP
Only use XKB with libxkbcommon defaults when no layout is configured, but fall back to VT-based input when KEYMAP is set without XKBLAYOUT. This preserves any user console keymap configuration.
This commit is contained in:
parent
e72b0fa557
commit
3e6f30d93a
1 changed files with 1 additions and 1 deletions
|
|
@ -832,7 +832,7 @@ parse_vconsole_conf (ply_device_manager_t *manager)
|
|||
|
||||
ply_trace ("KEYMAP: %s, XKBLAYOUT: %s, XKBMODEL %s, XKBVARIANT: %s, XKBOPTIONS: %s\n", keymap, xkb_layout, xkb_model, xkb_variant, xkb_options);
|
||||
|
||||
if (manager->xkb_context != NULL) {
|
||||
if (manager->xkb_context != NULL && (xkb_layout != NULL || keymap == NULL)) {
|
||||
struct xkb_rule_names xkb_keymap = {
|
||||
.layout = xkb_layout,
|
||||
.model = xkb_model,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue