Lines Matching full:act

738     XkbModAction *act;  in CopyModActionArgs()  local
741 act = &action->mods; in CopyModActionArgs()
742 tmp = XkbModActionVMods(act); in CopyModActionArgs()
744 if (act->flags & XkbSA_UseModMapMods) in CopyModActionArgs()
746 else if (act->real_mods || tmp) { in CopyModActionArgs()
748 XkbVModMaskText(xkb, act->real_mods, tmp, XkbXKBFile), sz); in CopyModActionArgs()
752 if (act->type == XkbSA_LockMods) in CopyModActionArgs()
754 if (act->flags & XkbSA_ClearLocks) in CopyModActionArgs()
756 if (act->flags & XkbSA_LatchToLock) in CopyModActionArgs()
764 XkbGroupAction *act; in CopyGroupActionArgs() local
767 act = &action->group; in CopyGroupActionArgs()
769 if (act->flags & XkbSA_GroupAbsolute) in CopyGroupActionArgs()
770 snprintf(tbuf, sizeof(tbuf), "%d", XkbSAGroup(act) + 1); in CopyGroupActionArgs()
771 else if (XkbSAGroup(act) < 0) in CopyGroupActionArgs()
772 snprintf(tbuf, sizeof(tbuf), "%d", XkbSAGroup(act)); in CopyGroupActionArgs()
774 snprintf(tbuf, sizeof(tbuf), "+%d", XkbSAGroup(act)); in CopyGroupActionArgs()
776 if (act->type == XkbSA_LockGroup) in CopyGroupActionArgs()
778 if (act->flags & XkbSA_ClearLocks) in CopyGroupActionArgs()
780 if (act->flags & XkbSA_LatchToLock) in CopyGroupActionArgs()
788 XkbPtrAction *act; in CopyMovePtrArgs() local
792 act = &action->ptr; in CopyMovePtrArgs()
793 x = XkbPtrActionX(act); in CopyMovePtrArgs()
794 y = XkbPtrActionY(act); in CopyMovePtrArgs()
795 if ((act->flags & XkbSA_MoveAbsoluteX) || (x < 0)) in CopyMovePtrArgs()
801 if ((act->flags & XkbSA_MoveAbsoluteY) || (y < 0)) in CopyMovePtrArgs()
806 if (act->flags & XkbSA_NoAcceleration) in CopyMovePtrArgs()
814 XkbPtrBtnAction *act; in CopyPtrBtnArgs() local
817 act = &action->btn; in CopyPtrBtnArgs()
819 if ((act->button > 0) && (act->button < 6)) { in CopyPtrBtnArgs()
820 snprintf(tbuf, sizeof(tbuf), "%d", act->button); in CopyPtrBtnArgs()
825 if (act->count > 0) { in CopyPtrBtnArgs()
826 snprintf(tbuf, sizeof(tbuf), ",count=%d", act->count); in CopyPtrBtnArgs()
830 switch (act->flags & (XkbSA_LockNoUnlock | XkbSA_LockNoLock)) { in CopyPtrBtnArgs()
851 XkbPtrDfltAction *act; in CopySetPtrDfltArgs() local
854 act = &action->dflt; in CopySetPtrDfltArgs()
855 if (act->affect == XkbSA_AffectDfltBtn) { in CopySetPtrDfltArgs()
857 if ((act->flags & XkbSA_DfltBtnAbsolute) || in CopySetPtrDfltArgs()
858 (XkbSAPtrDfltValue(act) < 0)) in CopySetPtrDfltArgs()
859 snprintf(tbuf, sizeof(tbuf), "%d", XkbSAPtrDfltValue(act)); in CopySetPtrDfltArgs()
861 snprintf(tbuf, sizeof(tbuf), "+%d", XkbSAPtrDfltValue(act)); in CopySetPtrDfltArgs()
870 XkbISOAction *act; in CopyISOLockArgs() local
873 act = &action->iso; in CopyISOLockArgs()
874 if (act->flags & XkbSA_ISODfltIsGroup) { in CopyISOLockArgs()
876 if (act->flags & XkbSA_GroupAbsolute) in CopyISOLockArgs()
877 snprintf(tbuf, sizeof(tbuf), "%d", XkbSAGroup(act) + 1); in CopyISOLockArgs()
878 else if (XkbSAGroup(act) < 0) in CopyISOLockArgs()
879 snprintf(tbuf, sizeof(tbuf), "%d", XkbSAGroup(act)); in CopyISOLockArgs()
881 snprintf(tbuf, sizeof(tbuf), "+%d", XkbSAGroup(act)); in CopyISOLockArgs()
887 tmp = XkbModActionVMods(act); in CopyISOLockArgs()
889 if (act->flags & XkbSA_UseModMapMods) in CopyISOLockArgs()
891 else if (act->real_mods || tmp) { in CopyISOLockArgs()
892 if (act->real_mods) { in CopyISOLockArgs()
893 TryCopyStr(buf, XkbModMaskText(act->real_mods, XkbXKBFile), sz); in CopyISOLockArgs()
904 if ((act->affect & XkbSA_ISOAffectMask) == 0) in CopyISOLockArgs()
909 if ((act->affect & XkbSA_ISONoAffectMods) == 0) { in CopyISOLockArgs()
913 if ((act->affect & XkbSA_ISONoAffectGroup) == 0) { in CopyISOLockArgs()
918 if ((act->affect & XkbSA_ISONoAffectPtr) == 0) { in CopyISOLockArgs()
923 if ((act->affect & XkbSA_ISONoAffectCtrls) == 0) { in CopyISOLockArgs()
935 XkbSwitchScreenAction *act; in CopySwitchScreenArgs() local
938 act = &action->screen; in CopySwitchScreenArgs()
939 if ((act->flags & XkbSA_SwitchAbsolute) || (XkbSAScreen(act) < 0)) in CopySwitchScreenArgs()
940 snprintf(tbuf, sizeof(tbuf), "screen=%d", XkbSAScreen(act)); in CopySwitchScreenArgs()
942 snprintf(tbuf, sizeof(tbuf), "screen=+%d", XkbSAScreen(act)); in CopySwitchScreenArgs()
944 if (act->flags & XkbSA_SwitchApplication) in CopySwitchScreenArgs()
954 XkbCtrlsAction *act; in CopySetLockControlsArgs() local
958 act = &action->ctrls; in CopySetLockControlsArgs()
959 tmp = XkbActionCtrls(act); in CopySetLockControlsArgs()
1046 XkbMessageAction *act; in CopyActionMessageArgs() local
1050 act = &action->msg; in CopyActionMessageArgs()
1053 if ((act->flags & all) == 0) in CopyActionMessageArgs()
1055 else if ((act->flags & all) == all) in CopyActionMessageArgs()
1057 else if (act->flags & XkbSA_MessageOnPress) in CopyActionMessageArgs()
1061 snprintf(tbuf, sizeof(tbuf), ",data[0]=0x%02x", act->message[0]); in CopyActionMessageArgs()
1063 snprintf(tbuf, sizeof(tbuf), ",data[1]=0x%02x", act->message[1]); in CopyActionMessageArgs()
1065 snprintf(tbuf, sizeof(tbuf), ",data[2]=0x%02x", act->message[2]); in CopyActionMessageArgs()
1067 snprintf(tbuf, sizeof(tbuf), ",data[3]=0x%02x", act->message[3]); in CopyActionMessageArgs()
1069 snprintf(tbuf, sizeof(tbuf), ",data[4]=0x%02x", act->message[4]); in CopyActionMessageArgs()
1071 snprintf(tbuf, sizeof(tbuf), ",data[5]=0x%02x", act->message[5]); in CopyActionMessageArgs()
1079 XkbRedirectKeyAction *act; in CopyRedirectKeyArgs() local
1084 act = &action->redirect; in CopyRedirectKeyArgs()
1085 kc = act->new_key; in CopyRedirectKeyArgs()
1086 vmods = XkbSARedirectVMods(act); in CopyRedirectKeyArgs()
1087 vmods_mask = XkbSARedirectVModsMask(act); in CopyRedirectKeyArgs()
1098 if ((act->mods_mask == 0) && (vmods_mask == 0)) in CopyRedirectKeyArgs()
1100 if ((act->mods_mask == XkbAllModifiersMask) && in CopyRedirectKeyArgs()
1102 tmp = XkbVModMaskText(xkb, act->mods, vmods, XkbXKBFile); in CopyRedirectKeyArgs()
1107 if ((act->mods_mask & act->mods) || (vmods_mask & vmods)) { in CopyRedirectKeyArgs()
1108 tmp = XkbVModMaskText(xkb, act->mods_mask & act->mods, in CopyRedirectKeyArgs()
1113 if ((act->mods_mask & (~act->mods)) || (vmods_mask & (~vmods))) { in CopyRedirectKeyArgs()
1114 tmp = XkbVModMaskText(xkb, act->mods_mask & (~act->mods), in CopyRedirectKeyArgs()
1126 XkbDeviceBtnAction *act; in CopyDeviceBtnArgs() local
1129 act = &action->devbtn; in CopyDeviceBtnArgs()
1130 snprintf(tbuf, sizeof(tbuf), "device= %d", act->device); in CopyDeviceBtnArgs()
1133 snprintf(tbuf, sizeof(tbuf), "%d", act->button); in CopyDeviceBtnArgs()
1135 if (act->count > 0) { in CopyDeviceBtnArgs()
1136 snprintf(tbuf, sizeof(tbuf), ",count=%d", act->count); in CopyDeviceBtnArgs()
1140 switch (act->flags & (XkbSA_LockNoUnlock | XkbSA_LockNoLock)) { in CopyDeviceBtnArgs()
1161 XkbAnyAction *act; in CopyOtherArgs() local
1164 act = &action->any; in CopyOtherArgs()
1165 snprintf(tbuf, sizeof(tbuf), "type=0x%02x", act->type); in CopyOtherArgs()
1167 snprintf(tbuf, sizeof(tbuf), ",data[0]=0x%02x", act->data[0]); in CopyOtherArgs()
1169 snprintf(tbuf, sizeof(tbuf), ",data[1]=0x%02x", act->data[1]); in CopyOtherArgs()
1171 snprintf(tbuf, sizeof(tbuf), ",data[2]=0x%02x", act->data[2]); in CopyOtherArgs()
1173 snprintf(tbuf, sizeof(tbuf), ",data[3]=0x%02x", act->data[3]); in CopyOtherArgs()
1175 snprintf(tbuf, sizeof(tbuf), ",data[4]=0x%02x", act->data[4]); in CopyOtherArgs()
1177 snprintf(tbuf, sizeof(tbuf), ",data[5]=0x%02x", act->data[5]); in CopyOtherArgs()
1179 snprintf(tbuf, sizeof(tbuf), ",data[6]=0x%02x", act->data[6]); in CopyOtherArgs()