Lines Matching defs:tempGrab

2155     GrabPtr tempGrab;
2169 tempGrab = AllocGrab(NULL);
2170 if (!tempGrab)
2172 tempGrab->next = NULL;
2173 tempGrab->device = dev;
2174 tempGrab->resource = client->clientAsMask;
2175 tempGrab->window = win;
2176 tempGrab->ownerEvents = (deliveryMask & OwnerGrabButtonMask) ? TRUE : FALSE;
2177 tempGrab->eventMask = deliveryMask;
2178 tempGrab->keyboardMode = GrabModeAsync;
2179 tempGrab->pointerMode = GrabModeAsync;
2180 tempGrab->confineTo = NullWindow;
2181 tempGrab->cursor = NullCursor;
2182 tempGrab->type = type;
2183 tempGrab->grabtype = grabtype;
2187 tempGrab->deviceMask = (inputMasks) ? inputMasks->inputEvents[dev->id] : 0;
2190 xi2mask_merge(tempGrab->xi2mask, inputMasks->xi2mask);
2192 (*dev->deviceGrab.ActivateGrab) (dev, tempGrab,
2194 FreeGrab(tempGrab);
4011 * @param tempGrab A pre-allocated temporary grab record for matching. This
4018 Bool checkCore, GrabPtr tempGrab)
4040 tempGrab->modifierDevice = grab->modifierDevice;
4041 tempGrab->modifiersDetail.exact = xkbi ? xkbi->state.grab_mods : 0;
4044 match = MatchForType(grab, tempGrab, XI2, event->any.type);
4049 match = MatchForType(grab, tempGrab, XI2, emulated_type);
4053 match = MatchForType(grab, tempGrab, XI, event->any.type);
4056 match = MatchForType(grab, tempGrab, XI, emulated_type);
4059 match = MatchForType(grab, tempGrab, CORE, event->any.type);
4061 match = MatchForType(grab, tempGrab, CORE, emulated_type);
4114 GrabPtr tempGrab;
4119 tempGrab = AllocGrab(NULL);
4120 if (tempGrab == NULL)
4128 tempGrab->detail.exact = event->device_event.detail.key;
4134 tempGrab->detail.exact = event->device_event.detail.button;
4137 tempGrab->detail.exact = 0;
4140 tempGrab->window = pWin;
4141 tempGrab->device = device;
4142 tempGrab->detail.pMask = NULL;
4143 tempGrab->modifiersDetail.pMask = NULL;
4144 tempGrab->next = NULL;
4147 if (!CheckPassiveGrab(device, grab, event, checkCore, tempGrab))
4156 FreeGrab(tempGrab);
5300 GrabPtr tempGrab;
5302 tempGrab = AllocGrab(NULL);
5303 if (tempGrab == NULL)
5306 tempGrab->next = NULL;
5307 tempGrab->window = pWin;
5308 tempGrab->resource = client->clientAsMask;
5309 tempGrab->ownerEvents = ownerEvents;
5310 tempGrab->keyboardMode = keyboard_mode;
5311 tempGrab->pointerMode = pointer_mode;
5313 tempGrab->eventMask = mask->core;
5315 tempGrab->eventMask = mask->xi;
5317 xi2mask_merge(tempGrab->xi2mask, mask->xi2mask);
5318 tempGrab->device = dev;
5319 tempGrab->cursor = RefCursor(cursor);
5320 tempGrab->confineTo = confineTo;
5321 tempGrab->grabtype = grabtype;
5322 (*grabInfo->ActivateGrab) (dev, tempGrab, time, FALSE);
5325 FreeGrab(tempGrab);
5651 GrabPtr tempGrab;
5671 tempGrab = AllocGrab(NULL);
5672 if (!tempGrab)
5674 tempGrab->resource = client->clientAsMask;
5675 tempGrab->device = keybd;
5676 tempGrab->window = pWin;
5677 tempGrab->modifiersDetail.exact = stuff->modifiers;
5678 tempGrab->modifiersDetail.pMask = NULL;
5679 tempGrab->modifierDevice = keybd;
5680 tempGrab->type = KeyPress;
5681 tempGrab->grabtype = CORE;
5682 tempGrab->detail.exact = stuff->key;
5683 tempGrab->detail.pMask = NULL;
5684 tempGrab->next = NULL;
5686 if (!DeletePassiveGrabFromList(tempGrab))
5689 FreeGrab(tempGrab);
5850 GrabPtr tempGrab;
5867 tempGrab = AllocGrab(NULL);
5868 if (!tempGrab)
5870 tempGrab->resource = client->clientAsMask;
5871 tempGrab->device = ptr;
5872 tempGrab->window = pWin;
5873 tempGrab->modifiersDetail.exact = stuff->modifiers;
5874 tempGrab->modifiersDetail.pMask = NULL;
5875 tempGrab->modifierDevice = GetMaster(ptr, MASTER_KEYBOARD);
5876 tempGrab->type = ButtonPress;
5877 tempGrab->detail.exact = stuff->button;
5878 tempGrab->grabtype = CORE;
5879 tempGrab->detail.pMask = NULL;
5880 tempGrab->next = NULL;
5882 if (!DeletePassiveGrabFromList(tempGrab))
5885 FreeGrab(tempGrab);