Lines Matching refs:grab

904     GrabPtr grab = device->deviceGrab.grab;
906 if (grab)
935 GrabPtr grab;
1044 grab = device->deviceGrab.grab;
1049 if (!grab && CheckDeviceGrabs(device, event, 0)) {
1055 if (grab && device->deviceGrab.fromPassiveGrab &&
1057 (device->deviceGrab.grab->type == KeyPress ||
1058 device->deviceGrab.grab->type == DeviceKeyPress ||
1059 device->deviceGrab.grab->type == XI_KeyPress))
1068 if (!grab && CheckDeviceGrabs(device, event, 0))
1070 /* if a passive grab was activated, the event has been sent
1081 if (grab && !b->buttonsDown &&
1083 (device->deviceGrab.grab->type == ButtonPress ||
1084 device->deviceGrab.grab->type == DeviceButtonPress ||
1085 device->deviceGrab.grab->type == XI_ButtonPress))
1092 if (grab)
1425 GrabPtr grab;
1465 grab = CreateGrab(client->index, dev, modifier_device, pWin, grabtype,
1467 if (!grab)
1469 return AddPassiveGrabToList(client, grab);
1481 GrabPtr grab;
1512 grab = CreateGrab(client->index, dev, modifier_device, pWin, grabtype,
1514 if (!grab)
1516 return AddPassiveGrabToList(client, grab);
1519 /* Enter/FocusIn grab */
1526 GrabPtr grab;
1555 grab = CreateGrab(client->index, dev, dev, pWin, GRABTYPE_XI2,
1559 if (!grab)
1562 return AddPassiveGrabToList(client, grab);
1616 !(check & DevicePointerMotionHintMask) && !dev->deviceGrab.grab)
1867 * Deactivating a device grab should cause focus events. */
1869 if (dev->deviceGrab.grab && (dev->deviceGrab.grab->window == pWin))
1878 /* If a grab is in progress, then alter the mode of focus events. */
1880 if (dev->deviceGrab.grab)
1983 deviceKeyButtonPointer * xE, GrabPtr grab,
1995 else if ((type == DeviceButtonPress) && (!grab) &&
2033 GrabPtr grab = dev->deviceGrab.grab;
2037 if ((grab && SameClient(grab, client) &&
2038 ((grab->eventMask & DevicePointerMotionHintMask) ||
2039 (grab->ownerEvents &&
2042 (!grab &&