mirror of
https://cagebreak.project-repo.co/cagebreak.git
synced 2026-08-23 14:04:19 +02:00
Do not parse XKB_* env vars manually
This commit is contained in:
parent
54107a6876
commit
b878e48619
1 changed files with 1 additions and 7 deletions
8
seat.c
8
seat.c
|
|
@ -437,14 +437,8 @@ new_keyboard(struct cg_seat *seat, struct cg_input_device *input_device) {
|
|||
return;
|
||||
}
|
||||
|
||||
struct xkb_rule_names rules = {0};
|
||||
rules.rules = getenv("XKB_DEFAULT_RULES");
|
||||
rules.model = getenv("XKB_DEFAULT_MODEL");
|
||||
rules.layout = getenv("XKB_DEFAULT_LAYOUT");
|
||||
rules.variant = getenv("XKB_DEFAULT_VARIANT");
|
||||
rules.options = getenv("XKB_DEFAULT_OPTIONS");
|
||||
struct xkb_keymap *keymap =
|
||||
xkb_map_new_from_names(context, &rules, XKB_KEYMAP_COMPILE_NO_FLAGS);
|
||||
xkb_map_new_from_names(context, NULL, XKB_KEYMAP_COMPILE_NO_FLAGS);
|
||||
if(!keymap) {
|
||||
wlr_log(WLR_ERROR,
|
||||
"Unable to configure keyboard: keymap does not exist");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue