Lines Matching refs:act

882     XkbModAction *act;
885 act = &action->mods;
886 tmp = XkbModActionVMods(act);
888 if (act->flags & XkbSA_UseModMapMods)
890 else if (act->real_mods || tmp) {
892 XkbVModMaskText(dpy, xkb, act->real_mods, tmp, XkbXKBFile),
897 if (act->type == XkbSA_LockMods) {
898 switch (act->flags & (XkbSA_LockNoUnlock | XkbSA_LockNoLock)) {
913 if (act->flags & XkbSA_ClearLocks)
915 if (act->flags & XkbSA_LatchToLock)
925 XkbGroupAction *act;
928 act = &action->group;
930 if (act->flags & XkbSA_GroupAbsolute)
931 snprintf(tbuf, sizeof(tbuf), "%d", XkbSAGroup(act) + 1);
932 else if (XkbSAGroup(act) < 0)
933 snprintf(tbuf, sizeof(tbuf), "%d", XkbSAGroup(act));
935 snprintf(tbuf, sizeof(tbuf), "+%d", XkbSAGroup(act));
937 if (act->type == XkbSA_LockGroup)
939 if (act->flags & XkbSA_ClearLocks)
941 if (act->flags & XkbSA_LatchToLock)
951 XkbPtrAction *act;
955 act = &action->ptr;
956 x = XkbPtrActionX(act);
957 y = XkbPtrActionY(act);
958 if ((act->flags & XkbSA_MoveAbsoluteX) || (x < 0))
964 if ((act->flags & XkbSA_MoveAbsoluteY) || (y < 0))
969 if (act->flags & XkbSA_NoAcceleration)
979 XkbPtrBtnAction *act;
982 act = &action->btn;
984 if ((act->button > 0) && (act->button < 6)) {
985 snprintf(tbuf, sizeof(tbuf), "%d", act->button);
990 if (act->count > 0) {
991 snprintf(tbuf, sizeof(tbuf), ",count=%d", act->count);
995 switch (act->flags & (XkbSA_LockNoUnlock | XkbSA_LockNoLock)) {
1019 XkbPtrDfltAction *act;
1022 act = &action->dflt;
1023 if (act->affect == XkbSA_AffectDfltBtn) {
1025 if ((act->flags & XkbSA_DfltBtnAbsolute) ||
1026 (XkbSAPtrDfltValue(act) < 0))
1027 snprintf(tbuf, sizeof(tbuf), "%d", XkbSAPtrDfltValue(act));
1029 snprintf(tbuf, sizeof(tbuf), "+%d", XkbSAPtrDfltValue(act));
1039 XkbISOAction *act;
1042 act = &action->iso;
1043 if (act->flags & XkbSA_ISODfltIsGroup) {
1045 if (act->flags & XkbSA_GroupAbsolute)
1046 snprintf(tbuf, sizeof(tbuf), "%d", XkbSAGroup(act) + 1);
1047 else if (XkbSAGroup(act) < 0)
1048 snprintf(tbuf, sizeof(tbuf), "%d", XkbSAGroup(act));
1050 snprintf(tbuf, sizeof(tbuf), "+%d", XkbSAGroup(act));
1056 tmp = XkbModActionVMods(act);
1058 if (act->flags & XkbSA_UseModMapMods)
1060 else if (act->real_mods || tmp) {
1061 if (act->real_mods) {
1062 TryCopyStr(buf, XkbModMaskText(act->real_mods, XkbXKBFile), sz);
1074 if ((act->affect & XkbSA_ISOAffectMask) == 0) {
1077 else if ((act->affect & XkbSA_ISOAffectMask) == XkbSA_ISOAffectMask) {
1083 if ((act->affect & XkbSA_ISONoAffectMods) == 0) {
1087 if ((act->affect & XkbSA_ISONoAffectGroup) == 0) {
1092 if ((act->affect & XkbSA_ISONoAffectPtr) == 0) {
1097 if ((act->affect & XkbSA_ISONoAffectCtrls) == 0) {
1103 switch (act->flags & (XkbSA_LockNoUnlock | XkbSA_LockNoLock)) {
1123 XkbSwitchScreenAction *act;
1126 act = &action->screen;
1127 if ((act->flags & XkbSA_SwitchAbsolute) || (XkbSAScreen(act) < 0))
1128 snprintf(tbuf, sizeof(tbuf), "screen=%d", XkbSAScreen(act));
1130 snprintf(tbuf, sizeof(tbuf), "screen=+%d", XkbSAScreen(act));
1132 if (act->flags & XkbSA_SwitchApplication)
1144 XkbCtrlsAction *act;
1148 act = &action->ctrls;
1149 tmp = XkbActionCtrls(act);
1225 switch (act->flags & (XkbSA_LockNoUnlock | XkbSA_LockNoLock)) {
1246 XkbMessageAction *act;
1250 act = &action->msg;
1253 if ((act->flags & all) == 0)
1255 else if ((act->flags & all) == all)
1257 else if (act->flags & XkbSA_MessageOnPress)
1261 snprintf(tbuf, sizeof(tbuf), ",data[0]=0x%02x", act->message[0]);
1263 snprintf(tbuf, sizeof(tbuf), ",data[1]=0x%02x", act->message[1]);
1265 snprintf(tbuf, sizeof(tbuf), ",data[2]=0x%02x", act->message[2]);
1267 snprintf(tbuf, sizeof(tbuf), ",data[3]=0x%02x", act->message[3]);
1269 snprintf(tbuf, sizeof(tbuf), ",data[4]=0x%02x", act->message[4]);
1271 snprintf(tbuf, sizeof(tbuf), ",data[5]=0x%02x", act->message[5]);
1273 if (act->flags & XkbSA_MessageGenKeyEvent)
1282 XkbRedirectKeyAction *act;
1287 act = &action->redirect;
1288 kc = act->new_key;
1289 vmods = XkbSARedirectVMods(act);
1290 vmods_mask = XkbSARedirectVModsMask(act);
1301 if ((act->mods_mask == 0) && (vmods_mask == 0))
1303 if ((act->mods_mask == XkbAllModifiersMask) &&
1305 tmp = XkbVModMaskText(dpy, xkb, act->mods, vmods, XkbXKBFile);
1310 if ((act->mods_mask & act->mods) || (vmods_mask & vmods)) {
1311 tmp = XkbVModMaskText(dpy, xkb, act->mods_mask & act->mods,
1316 if ((act->mods_mask & (~act->mods)) || (vmods_mask & (~vmods))) {
1317 tmp = XkbVModMaskText(dpy, xkb, act->mods_mask & (~act->mods),
1331 XkbDeviceBtnAction *act;
1334 act = &action->devbtn;
1335 snprintf(tbuf, sizeof(tbuf), "device= %d", act->device);
1338 snprintf(tbuf, sizeof(tbuf), "%d", act->button);
1340 if (act->count > 0) {
1341 snprintf(tbuf, sizeof(tbuf), ",count=%d", act->count);
1345 switch (act->flags & (XkbSA_LockNoUnlock | XkbSA_LockNoLock)) {
1369 XkbAnyAction *act;
1372 act = &action->any;
1373 snprintf(tbuf, sizeof(tbuf), "type=0x%02x", act->type);
1375 snprintf(tbuf, sizeof(tbuf), ",data[0]=0x%02x", act->data[0]);
1377 snprintf(tbuf, sizeof(tbuf), ",data[1]=0x%02x", act->data[1]);
1379 snprintf(tbuf, sizeof(tbuf), ",data[2]=0x%02x", act->data[2]);
1381 snprintf(tbuf, sizeof(tbuf), ",data[3]=0x%02x", act->data[3]);
1383 snprintf(tbuf, sizeof(tbuf), ",data[4]=0x%02x", act->data[4]);
1385 snprintf(tbuf, sizeof(tbuf), ",data[5]=0x%02x", act->data[5]);
1387 snprintf(tbuf, sizeof(tbuf), ",data[6]=0x%02x", act->data[6]);