Lines Matching refs:grabinfo

1517     GrabInfoPtr grabinfo = &mouse->deviceGrab;  in ActivatePointerGrab()  local
1518 GrabPtr oldgrab = grabinfo->grab; in ActivatePointerGrab()
1519 WindowPtr oldWin = (grabinfo->grab) ? in ActivatePointerGrab()
1520 grabinfo->grab->window : mouse->spriteInfo->sprite->win; in ActivatePointerGrab()
1535 if (! (grabinfo->grab && oldWin == grabinfo->grab->window in ActivatePointerGrab()
1540 grabinfo->grabTime = syncEvents.time; in ActivatePointerGrab()
1542 grabinfo->grabTime = time; in ActivatePointerGrab()
1543 grabinfo->grab = AllocGrab(grab); in ActivatePointerGrab()
1544 grabinfo->fromPassiveGrab = isPassive; in ActivatePointerGrab()
1545 grabinfo->implicitGrab = autoGrab & ImplicitGrabMask; in ActivatePointerGrab()
1626 GrabInfoPtr grabinfo = &keybd->deviceGrab; in ActivateKeyboardGrab() local
1627 GrabPtr oldgrab = grabinfo->grab; in ActivateKeyboardGrab()
1637 else if (grabinfo->grab) in ActivateKeyboardGrab()
1638 oldWin = grabinfo->grab->window; in ActivateKeyboardGrab()
1648 ! (grabinfo->grab && oldWin == grabinfo->grab->window in ActivateKeyboardGrab()
1652 grabinfo->grabTime = syncEvents.time; in ActivateKeyboardGrab()
1654 grabinfo->grabTime = time; in ActivateKeyboardGrab()
1655 grabinfo->grab = AllocGrab(grab); in ActivateKeyboardGrab()
1656 grabinfo->fromPassiveGrab = passive; in ActivateKeyboardGrab()
1657 grabinfo->implicitGrab = passive & ImplicitGrabMask; in ActivateKeyboardGrab()
1713 GrabInfoPtr devgrabinfo, grabinfo = &thisDev->deviceGrab; in AllowSome() local
1715 thisGrabbed = grabinfo->grab && SameClient(grabinfo->grab, client); in AllowSome()
1719 grabTime = grabinfo->grabTime; in AllowSome()
1730 if (grabinfo->sync.other == devgrabinfo->grab) in AllowSome()
1736 if (!((thisGrabbed && grabinfo->sync.state >= FROZEN) || thisSynced)) in AllowSome()
1744 grabinfo->sync.state = THAWED; in AllowSome()
1746 grabinfo->sync.other = NullGrab; in AllowSome()
1751 grabinfo->sync.state = FREEZE_NEXT_EVENT; in AllowSome()
1753 grabinfo->sync.other = NullGrab; in AllowSome()
1784 if (thisGrabbed && grabinfo->sync.state == FROZEN_WITH_EVENT) { in AllowSome()
1786 grabinfo->sync.other = NullGrab; in AllowSome()
1788 syncEvents.replayWin = grabinfo->grab->window; in AllowSome()
1789 (*grabinfo->DeactivateGrab) (thisDev); in AllowSome()
1816 IsTouchEvent((InternalEvent*)grabinfo->sync.event)) { in AllowSome()
1817 TouchAcceptAndEnd(thisDev, grabinfo->sync.event->touchid); in AllowSome()
3666 GrabInfoPtr grabinfo = &device->deviceGrab; in ActivatePassiveGrab() local
3716 (*grabinfo->ActivateGrab) (device, grab, in ActivatePassiveGrab()
3728 if (grabinfo->sync.state == FROZEN_NO_EVENT) in ActivatePassiveGrab()
3729 grabinfo->sync.state = FROZEN_WITH_EVENT; in ActivatePassiveGrab()
3730 *grabinfo->sync.event = real_event->device_event; in ActivatePassiveGrab()
4163 GrabInfoPtr grabinfo = &dev->deviceGrab; in DeliverOneGrabbedEvent() local
4164 GrabPtr grab = grabinfo->grab; in DeliverOneGrabbedEvent()
4182 if (grabinfo->fromPassiveGrab && grabinfo->implicitGrab) in DeliverOneGrabbedEvent()
4236 GrabInfoPtr grabinfo; in DeliverGrabbedEvent() local
4242 grabinfo = &thisDev->deviceGrab; in DeliverGrabbedEvent()
4243 grab = grabinfo->grab; in DeliverGrabbedEvent()
4286 switch (grabinfo->sync.state) { in DeliverGrabbedEvent()
4300 grabinfo->sync.state = FROZEN_WITH_EVENT; in DeliverGrabbedEvent()
4302 *grabinfo->sync.event = event->device_event; in DeliverGrabbedEvent()