Lines Matching defs:pFirstGrab

405 GrabSupersedesSecond(GrabPtr pFirstGrab, GrabPtr pSecondGrab)
407 unsigned int any_modifier = (pFirstGrab->grabtype == XI2) ?
409 if (!DetailSupersedesSecond(pFirstGrab->modifiersDetail,
413 if (DetailSupersedesSecond(pFirstGrab->detail,
434 GrabMatchesSecond(GrabPtr pFirstGrab, GrabPtr pSecondGrab, Bool ignoreDevice)
436 unsigned int any_modifier = (pFirstGrab->grabtype == XI2) ?
439 if (pFirstGrab->grabtype != pSecondGrab->grabtype)
442 if (pFirstGrab->grabtype == XI2) {
443 if (pFirstGrab->device == inputInfo.all_devices ||
447 else if (pFirstGrab->device == inputInfo.all_master_devices) {
453 if (pFirstGrab->device != inputInfo.all_master_devices &&
454 !IsMaster(pFirstGrab->device))
457 else if (pSecondGrab->device != pFirstGrab->device)
461 ((pFirstGrab->device != pSecondGrab->device) ||
462 (pFirstGrab->modifierDevice != pSecondGrab->modifierDevice)))
465 if (pFirstGrab->type != pSecondGrab->type)
468 if (GrabSupersedesSecond(pFirstGrab, pSecondGrab) ||
469 GrabSupersedesSecond(pSecondGrab, pFirstGrab))
472 if (DetailSupersedesSecond(pSecondGrab->detail, pFirstGrab->detail,
475 DetailSupersedesSecond(pFirstGrab->modifiersDetail,
479 if (DetailSupersedesSecond(pFirstGrab->detail, pSecondGrab->detail,
483 pFirstGrab->modifiersDetail, any_modifier))
490 GrabsAreIdentical(GrabPtr pFirstGrab, GrabPtr pSecondGrab)
492 unsigned int any_modifier = (pFirstGrab->grabtype == XI2) ?
495 if (pFirstGrab->grabtype != pSecondGrab->grabtype)
498 if (pFirstGrab->device != pSecondGrab->device ||
499 (pFirstGrab->modifierDevice != pSecondGrab->modifierDevice) ||
500 (pFirstGrab->type != pSecondGrab->type))
503 if (!(DetailSupersedesSecond(pFirstGrab->detail,
507 pFirstGrab->detail, (unsigned int) AnyKey)))
510 if (!(DetailSupersedesSecond(pFirstGrab->modifiersDetail,
514 pFirstGrab->modifiersDetail, any_modifier)))