Lines Matching defs:mods
94 fake.mods.type = XkbSA_LatchMods;
95 fake.mods.mask = act->mods.mask;
97 fake.mods.flags= XkbSA_ClearLocks|XkbSA_LatchToLock;
98 else fake.mods.flags= XkbSA_ClearLocks;
137 register unsigned i,mods;
139 mods= xkbState->mods&type->mods.mask;
141 if ((entry->active)&&(entry->mods.mask==mods)) {
182 filter->filterOthers = ((pAction->mods.mask&XkbSA_ClearLocks)!=0);
187 xkbi->setMods= pAction->mods.mask;
199 xkbi->clearMods = filter->upAction.mods.mask;
200 if (filter->upAction.mods.flags&XkbSA_ClearLocks) {
201 xkbi->state.locked_mods&= ~filter->upAction.mods.mask;
213 filter->upAction.mods.flags&= ~XkbSA_ClearLocks;
238 xkbi->setMods = pAction->mods.mask;
252 xkbi->state.latched_mods&= ~filter->upAction.mods.mask;
256 (pAction->mods.flags==filter->upAction.mods.flags)&&
257 (pAction->mods.mask==filter->upAction.mods.mask)) {
258 if (filter->upAction.mods.flags&XkbSA_LatchToLock) {
261 pAction->mods.type= XkbSA_LockMods;
271 pAction->mods.type= XkbSA_SetMods;
275 xkbi->state.latched_mods&= ~filter->upAction.mods.mask;
288 xkbi->clearMods = filter->upAction.mods.mask;
289 if ((filter->upAction.mods.flags&XkbSA_ClearLocks)&&
311 xkbi->state.latched_mods |= filter->upAction.mods.mask;
313 xkbi->state.latched_mods |= filter->upAction.mods.mask;
350 xkbi->state.locked_mods^= pAction->mods.mask;
351 xkbi->setMods = pAction->mods.mask;
355 xkbi->clearMods = filter->upAction.mods.mask;
796 unsigned mods,mask;
831 mods= XkbSARedirectVMods(&pAction->redirect);
833 if (mods) XkbVirtualModsToReal(xkbi->desc,mods,&mods);
835 mods|= pAction->redirect.mods;
837 if ( mask || mods ) {
840 xkbi->state.base_mods|= (mods&mask);
842 xkbi->state.latched_mods|= (mods&mask);
844 xkbi->state.locked_mods|= (mods&mask);
853 if ( mask || mods )
862 mods= XkbSARedirectVMods(&filter->upAction.redirect);
864 if (mods) XkbVirtualModsToReal(xkbi->desc,mods,&mods);
866 mods|= filter->upAction.redirect.mods;
868 if ( mask || mods ) {
871 xkbi->state.base_mods|= (mods&mask);
873 xkbi->state.latched_mods|= (mods&mask);
875 xkbi->state.locked_mods|= (mods&mask);
884 if ( mask || mods )
1253 act.mods.flags = 0;
1254 act.mods.mask = mask&latches;