Lines Matching defs:needed
463 XkbResizeKeySyms(XkbDescPtr xkb,int key,int needed)
469 if (needed==0) {
474 if (nOldSyms>=(unsigned)needed) {
477 if (xkb->map->size_syms-xkb->map->num_syms>=(unsigned)needed) {
482 if ((needed-nOldSyms)>0) {
484 0, (needed-nOldSyms)*sizeof(KeySym));
487 xkb->map->num_syms+= needed;
490 xkb->map->size_syms+= (needed>32?needed:32);
503 nKeySyms= needed;
743 XkbResizeKeyActions(XkbDescPtr xkb,int key,int needed)
748 if (needed==0) {
752 if (XkbKeyHasActions(xkb,key)&&(XkbKeyNumSyms(xkb,key)>=(unsigned)needed))
754 if (xkb->server->size_acts-xkb->server->num_acts>=(unsigned)needed) {
756 xkb->server->num_acts+= needed;
759 xkb->server->size_acts= xkb->server->num_acts+needed+8;
773 nKeyActs= needed;
774 if (needed<nCopy)
775 nCopy= needed;