From c88439dbf076ade1f6500d04b2db30e28a81c2d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= Date: Wed, 20 Oct 2010 22:27:07 -0400 Subject: [PATCH] Update xkb->ctrls->num_groups when copying the keysyms This used to be set when we read an XKM file. --- src/xkbcomp/symbols.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/xkbcomp/symbols.c b/src/xkbcomp/symbols.c index d1c2da2..d5057a6 100644 --- a/src/xkbcomp/symbols.c +++ b/src/xkbcomp/symbols.c @@ -2148,6 +2148,9 @@ CopySymbolsDef(struct xkb_desc * xkb, KeyInfo *key, int start_from) xkb->server->explicit[kc] |= XkbExplicitAutoRepeatMask; } + if (nGroups > xkb->ctrls->num_groups) + xkb->ctrls->num_groups = nGroups; + /* do the same thing for the next key */ CopySymbolsDef(xkb, key, kc + 1); return True;