Update xkb->ctrls->num_groups when copying the keysyms

This used to be set when we read an XKM file.
master
Kristian Høgsberg 2010-10-20 22:27:07 -04:00
parent 125691573c
commit c88439dbf0
1 changed files with 3 additions and 0 deletions

View File

@ -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;