~sircmpwn/wio

576b0829341ca0171b4bd69787bfa6b85aae44a3 — Drew DeVault 2 years ago 57b8611
Pull input device config from environment
1 files changed, 5 insertions(+), 0 deletions(-)

M input.c
M input.c => input.c +5 -0
@@ 42,6 42,11 @@ static void server_new_keyboard(
	keyboard->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_context *context = xkb_context_new(XKB_CONTEXT_NO_FLAGS);
	struct xkb_keymap *keymap = xkb_map_new_from_names(context, &rules,
		XKB_KEYMAP_COMPILE_NO_FLAGS);