mirror of
https://github.com/cage-kiosk/cage.git
synced 2025-10-29 05:40:19 -04:00
parent
b16fc7d780
commit
1de6054d7e
1 changed files with 5 additions and 0 deletions
5
seat.c
5
seat.c
|
|
@ -289,6 +289,11 @@ handle_new_keyboard(struct cg_seat *seat, struct wlr_input_device *device)
|
|||
}
|
||||
|
||||
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);
|
||||
if (!keymap) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue