From 54b41e8493481bd88e31bfaa350ac2982c7ef9c7 Mon Sep 17 00:00:00 2001 From: wysiwys Date: Sat, 23 Mar 2024 11:46:54 +0800 Subject: [PATCH] change `layout_idx` to `variant_idx` --- src/xkbcomp/rules.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xkbcomp/rules.c b/src/xkbcomp/rules.c index 5bcfa22a..4d819d11 100644 --- a/src/xkbcomp/rules.c +++ b/src/xkbcomp/rules.c @@ -879,7 +879,7 @@ matcher_rule_apply_if_matches(struct matcher *m, struct scanner *s) matched = match_value_and_mark(m, value, to, match_type); } else if (mlvo == MLVO_VARIANT) { - xkb_layout_index_t idx = m->mapping.layout_idx; + xkb_layout_index_t idx = m->mapping.variant_idx; idx = (idx == XKB_LAYOUT_INVALID ? 0 : idx); to = &darray_item(m->rmlvo.variants, idx); matched = match_value_and_mark(m, value, to, match_type);