Lines Matching refs:tempGrab
2038 GrabPtr tempGrab; in ActivateImplicitGrab() local
2052 tempGrab = AllocGrab(NULL); in ActivateImplicitGrab()
2053 if (!tempGrab) in ActivateImplicitGrab()
2055 tempGrab->next = NULL; in ActivateImplicitGrab()
2056 tempGrab->device = dev; in ActivateImplicitGrab()
2057 tempGrab->resource = client->clientAsMask; in ActivateImplicitGrab()
2058 tempGrab->window = win; in ActivateImplicitGrab()
2059 tempGrab->ownerEvents = (deliveryMask & OwnerGrabButtonMask) ? TRUE : FALSE; in ActivateImplicitGrab()
2060 tempGrab->eventMask = deliveryMask; in ActivateImplicitGrab()
2061 tempGrab->keyboardMode = GrabModeAsync; in ActivateImplicitGrab()
2062 tempGrab->pointerMode = GrabModeAsync; in ActivateImplicitGrab()
2063 tempGrab->confineTo = NullWindow; in ActivateImplicitGrab()
2064 tempGrab->cursor = NullCursor; in ActivateImplicitGrab()
2065 tempGrab->type = type; in ActivateImplicitGrab()
2066 tempGrab->grabtype = grabtype; in ActivateImplicitGrab()
2070 tempGrab->deviceMask = (inputMasks) ? inputMasks->inputEvents[dev->id] : 0; in ActivateImplicitGrab()
2073 xi2mask_merge(tempGrab->xi2mask, inputMasks->xi2mask); in ActivateImplicitGrab()
2075 (*dev->deviceGrab.ActivateGrab) (dev, tempGrab, in ActivateImplicitGrab()
2077 FreeGrab(tempGrab); in ActivateImplicitGrab()
3832 Bool checkCore, GrabPtr tempGrab) in CheckPassiveGrab() argument
3854 tempGrab->modifierDevice = grab->modifierDevice; in CheckPassiveGrab()
3855 tempGrab->modifiersDetail.exact = xkbi ? xkbi->state.grab_mods : 0; in CheckPassiveGrab()
3858 match = MatchForType(grab, tempGrab, XI2, event->any.type); in CheckPassiveGrab()
3863 match = MatchForType(grab, tempGrab, XI2, emulated_type); in CheckPassiveGrab()
3867 match = MatchForType(grab, tempGrab, XI, event->any.type); in CheckPassiveGrab()
3870 match = MatchForType(grab, tempGrab, XI, emulated_type); in CheckPassiveGrab()
3873 match = MatchForType(grab, tempGrab, CORE, event->any.type); in CheckPassiveGrab()
3875 match = MatchForType(grab, tempGrab, CORE, emulated_type); in CheckPassiveGrab()
3928 GrabPtr tempGrab; in CheckPassiveGrabsOnWindow() local
3933 tempGrab = AllocGrab(NULL); in CheckPassiveGrabsOnWindow()
3934 if (tempGrab == NULL) in CheckPassiveGrabsOnWindow()
3942 tempGrab->detail.exact = event->device_event.detail.key; in CheckPassiveGrabsOnWindow()
3948 tempGrab->detail.exact = event->device_event.detail.button; in CheckPassiveGrabsOnWindow()
3951 tempGrab->detail.exact = 0; in CheckPassiveGrabsOnWindow()
3954 tempGrab->window = pWin; in CheckPassiveGrabsOnWindow()
3955 tempGrab->device = device; in CheckPassiveGrabsOnWindow()
3956 tempGrab->detail.pMask = NULL; in CheckPassiveGrabsOnWindow()
3957 tempGrab->modifiersDetail.pMask = NULL; in CheckPassiveGrabsOnWindow()
3958 tempGrab->next = NULL; in CheckPassiveGrabsOnWindow()
3961 if (!CheckPassiveGrab(device, grab, event, checkCore, tempGrab)) in CheckPassiveGrabsOnWindow()
3970 FreeGrab(tempGrab); in CheckPassiveGrabsOnWindow()
5104 GrabPtr tempGrab; in GrabDevice() local
5106 tempGrab = AllocGrab(NULL); in GrabDevice()
5107 if (tempGrab == NULL) in GrabDevice()
5110 tempGrab->next = NULL; in GrabDevice()
5111 tempGrab->window = pWin; in GrabDevice()
5112 tempGrab->resource = client->clientAsMask; in GrabDevice()
5113 tempGrab->ownerEvents = ownerEvents; in GrabDevice()
5114 tempGrab->keyboardMode = keyboard_mode; in GrabDevice()
5115 tempGrab->pointerMode = pointer_mode; in GrabDevice()
5117 tempGrab->eventMask = mask->core; in GrabDevice()
5119 tempGrab->eventMask = mask->xi; in GrabDevice()
5121 xi2mask_merge(tempGrab->xi2mask, mask->xi2mask); in GrabDevice()
5122 tempGrab->device = dev; in GrabDevice()
5123 tempGrab->cursor = RefCursor(cursor); in GrabDevice()
5124 tempGrab->confineTo = confineTo; in GrabDevice()
5125 tempGrab->grabtype = grabtype; in GrabDevice()
5126 (*grabInfo->ActivateGrab) (dev, tempGrab, time, FALSE); in GrabDevice()
5129 FreeGrab(tempGrab); in GrabDevice()
5455 GrabPtr tempGrab; in ProcUngrabKey() local
5475 tempGrab = AllocGrab(NULL); in ProcUngrabKey()
5476 if (!tempGrab) in ProcUngrabKey()
5478 tempGrab->resource = client->clientAsMask; in ProcUngrabKey()
5479 tempGrab->device = keybd; in ProcUngrabKey()
5480 tempGrab->window = pWin; in ProcUngrabKey()
5481 tempGrab->modifiersDetail.exact = stuff->modifiers; in ProcUngrabKey()
5482 tempGrab->modifiersDetail.pMask = NULL; in ProcUngrabKey()
5483 tempGrab->modifierDevice = keybd; in ProcUngrabKey()
5484 tempGrab->type = KeyPress; in ProcUngrabKey()
5485 tempGrab->grabtype = CORE; in ProcUngrabKey()
5486 tempGrab->detail.exact = stuff->key; in ProcUngrabKey()
5487 tempGrab->detail.pMask = NULL; in ProcUngrabKey()
5488 tempGrab->next = NULL; in ProcUngrabKey()
5490 if (!DeletePassiveGrabFromList(tempGrab)) in ProcUngrabKey()
5493 FreeGrab(tempGrab); in ProcUngrabKey()
5654 GrabPtr tempGrab; in ProcUngrabButton() local
5671 tempGrab = AllocGrab(NULL); in ProcUngrabButton()
5672 if (!tempGrab) in ProcUngrabButton()
5674 tempGrab->resource = client->clientAsMask; in ProcUngrabButton()
5675 tempGrab->device = ptr; in ProcUngrabButton()
5676 tempGrab->window = pWin; in ProcUngrabButton()
5677 tempGrab->modifiersDetail.exact = stuff->modifiers; in ProcUngrabButton()
5678 tempGrab->modifiersDetail.pMask = NULL; in ProcUngrabButton()
5679 tempGrab->modifierDevice = GetMaster(ptr, MASTER_KEYBOARD); in ProcUngrabButton()
5680 tempGrab->type = ButtonPress; in ProcUngrabButton()
5681 tempGrab->detail.exact = stuff->button; in ProcUngrabButton()
5682 tempGrab->grabtype = CORE; in ProcUngrabButton()
5683 tempGrab->detail.pMask = NULL; in ProcUngrabButton()
5684 tempGrab->next = NULL; in ProcUngrabButton()
5686 if (!DeletePassiveGrabFromList(tempGrab)) in ProcUngrabButton()
5689 FreeGrab(tempGrab); in ProcUngrabButton()