Lines Matching defs:ctrls

343     repeat= xkb->ctrls->per_key_repeat;
352 (changes->ctrls.changed_ctrls&XkbPerKeyRepeatMask)) {
522 XkbControlsPtr ctrls = pXDev->key->xkbInfo->desc->ctrls;
524 old = *ctrls;
527 if (onoff) ctrls->enabled_ctrls |= XkbRepeatKeysMask;
528 else ctrls->enabled_ctrls &= ~XkbRepeatKeysMask;
531 ctrls->per_key_repeat[key/8] =
535 if (XkbComputeControlsNotify(pXDev,&old,ctrls,&cn,TRUE))
633 if (!state || !xkbi->desc || !xkbi->desc->ctrls || !xkbi->desc->compat)
641 if (xkbi->desc->ctrls->enabled_ctrls&XkbIgnoreGroupLockMask)
648 XkbAdjustGroup(int group,XkbControlsPtr ctrls)
652 act= XkbOutOfRangeGroupAction(ctrls->groups_wrap);
660 newGroup= XkbOutOfRangeGroupNumber(ctrls->groups_wrap);
661 if (newGroup>=ctrls->num_groups)
666 group+= ctrls->num_groups;
670 else if (group>=ctrls->num_groups) {
672 group= ctrls->num_groups-1;
676 newGroup= XkbOutOfRangeGroupNumber(ctrls->groups_wrap);
677 if (newGroup>=ctrls->num_groups)
682 group%= ctrls->num_groups;
692 XkbControlsPtr ctrls= xkbi->desc->ctrls;
695 if (!state || !ctrls)
699 state->lookup_mods= state->mods&(~ctrls->internal.mask);
700 state->grab_mods= state->lookup_mods&(~ctrls->ignore_lock.mask);
702 ((state->base_mods|state->latched_mods)&ctrls->ignore_lock.mask);
706 if (grp>=ctrls->num_groups)
707 state->locked_group= XkbAdjustGroup(XkbCharToInt(grp),ctrls);
710 if (grp>=ctrls->num_groups)
711 state->group= XkbAdjustGroup(XkbCharToInt(grp),ctrls);
746 XkbControlsPtr ctrls;
750 ctrls= xkbi->desc->ctrls;
751 old= ctrls->enabled_ctrls;
752 ctrls->enabled_ctrls&= ~change;
753 ctrls->enabled_ctrls|= (change&newValues);
754 if (old==ctrls->enabled_ctrls)
758 cn.numGroups= ctrls->num_groups;
760 cn.enabledControls= ctrls->enabled_ctrls;
761 cn.enabledControlChanges= (ctrls->enabled_ctrls^old);
769 /* Yes, this really should be an XOR. If ctrls->enabled_ctrls_changes*/
774 changes->ctrls.enabled_ctrls_changes^= (ctrls->enabled_ctrls^old);
775 if (changes->ctrls.enabled_ctrls_changes)
776 changes->ctrls.changed_ctrls|= XkbControlsEnabledMask;
777 else changes->ctrls.changed_ctrls&= ~XkbControlsEnabledMask;
1959 if (src->ctrls) {
1960 if (!dst->ctrls) {
1961 dst->ctrls = malloc(sizeof(XkbControlsRec));
1962 if (!dst->ctrls)
1965 memcpy(dst->ctrls, src->ctrls, sizeof(XkbControlsRec));
1968 free(dst->ctrls);
1969 dst->ctrls = NULL;