backend-vnc: use configured keymap

Use the keymap rules/model/layout configured in the weston.ini [keyboard]
section.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
This commit is contained in:
Philipp Zabel 2022-10-06 16:50:47 +02:00 committed by Philipp Zabel
parent 5cd87ff801
commit 2f0be4b4d0

View File

@ -965,9 +965,9 @@ vnc_backend_create(struct weston_compositor *compositor,
compositor->capabilities |= WESTON_CAP_ARBITRARY_MODES;
backend->xkb_rule_name.rules = strdup("evdev");
backend->xkb_rule_name.model = strdup("pc105");
backend->xkb_rule_name.layout = strdup("us");
backend->xkb_rule_name.rules = strdup(compositor->xkb_names.rules);
backend->xkb_rule_name.model = strdup(compositor->xkb_names.model);
backend->xkb_rule_name.layout = strdup(compositor->xkb_names.layout);
backend->xkb_keymap = xkb_keymap_new_from_names(
backend->compositor->xkb_context,