From: Kristian Høgsberg Date: Thu, 21 Oct 2010 02:27:07 +0000 (-0400) Subject: Update xkb->ctrls->num_groups when copying the keysyms X-Git-Tag: xkbcommon-0.2.0~836 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c88439dbf076ade1f6500d04b2db30e28a81c2d3;p=platform%2Fupstream%2Flibxkbcommon.git Update xkb->ctrls->num_groups when copying the keysyms This used to be set when we read an XKM file. --- 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;