spkp

Stacking wayland compositor
git clone git://git.z3bra.org/sp:kp.git
Log | Files | Refs

commit b8473ae7484a34f82ef3d7bebdaf2a3fef9c91bf
parent c356c7edc7373730b99f3efff6e95390acbd5d79
Author: Willy Goiffon <dev@z3bra.org>
Date:   Sat, 14 Nov 2020 10:13:53 +0100

Setup keyboard according to XKB_DEFAULT_* env vars

Diffstat:
Mcompositor.c | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/compositor.c b/compositor.c @@ -832,6 +832,12 @@ add_keyboard(struct state *server, struct wlr_input_device *device) kb->server = server; kb->device = device; + 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"); + context = xkb_context_new(XKB_CONTEXT_NO_FLAGS); keymap = xkb_map_new_from_names(context, &rules, XKB_KEYMAP_COMPILE_NO_FLAGS);