Lines Matching refs:pSprite

512     SpritePtr pSprite = pDev->spriteInfo->sprite;  in XineramaSetCursorPosition()  local
518 pScreen = pSprite->screen; in XineramaSetCursorPosition()
533 pSprite->screen = pScreen; in XineramaSetCursorPosition()
534 pSprite->hotPhys.x = x - screenInfo.screens[0]->x; in XineramaSetCursorPosition()
535 pSprite->hotPhys.y = y - screenInfo.screens[0]->y; in XineramaSetCursorPosition()
545 SpritePtr pSprite = pDev->spriteInfo->sprite; in XineramaConstrainCursor() local
549 pScreen = pSprite->screen; in XineramaConstrainCursor()
550 newBox = pSprite->physLimits; in XineramaConstrainCursor()
565 SpritePtr pSprite = pDev->spriteInfo->sprite; in XineramaSetWindowPntrs() local
571 pSprite->windows[i] = screenInfo.screens[i]->root; in XineramaSetWindowPntrs()
583 rc = dixLookupWindow(pSprite->windows + i, win->info[i].id, in XineramaSetWindowPntrs()
596 SpritePtr pSprite = pDev->spriteInfo->sprite; in XineramaConfineCursorToWindow() local
607 RegionCopy(&pSprite->Reg1, &pSprite->windows[i]->borderSize); in XineramaConfineCursorToWindow()
616 RegionTranslate(&pSprite->Reg1, x, y); in XineramaConfineCursorToWindow()
618 RegionUnion(&pSprite->Reg1, &pSprite->Reg1, in XineramaConfineCursorToWindow()
619 &pSprite->windows[i]->borderSize); in XineramaConfineCursorToWindow()
625 pSprite->hotLimits = *RegionExtents(&pSprite->Reg1); in XineramaConfineCursorToWindow()
627 if (RegionNumRects(&pSprite->Reg1) > 1) in XineramaConfineCursorToWindow()
628 pSprite->hotShape = &pSprite->Reg1; in XineramaConfineCursorToWindow()
630 pSprite->hotShape = NullRegion; in XineramaConfineCursorToWindow()
632 pSprite->confined = FALSE; in XineramaConfineCursorToWindow()
633 pSprite->confineWin = in XineramaConfineCursorToWindow()
636 CheckPhysLimits(pDev, pSprite->current, generateEvents, FALSE, NULL); in XineramaConfineCursorToWindow()
710 SpritePtr pSprite = pDev->spriteInfo->sprite; in CheckPhysLimits() local
714 new = pSprite->hotPhys; in CheckPhysLimits()
718 pSprite->physLimits = pSprite->hotLimits; in CheckPhysLimits()
726 (*pScreen->CursorLimits) (pDev, pScreen, cursor, &pSprite->hotLimits, in CheckPhysLimits()
727 &pSprite->physLimits); in CheckPhysLimits()
728 pSprite->confined = confineToScreen; in CheckPhysLimits()
729 (*pScreen->ConstrainCursor) (pDev, pScreen, &pSprite->physLimits); in CheckPhysLimits()
733 if (new.x < pSprite->physLimits.x1) in CheckPhysLimits()
734 new.x = pSprite->physLimits.x1; in CheckPhysLimits()
735 else if (new.x >= pSprite->physLimits.x2) in CheckPhysLimits()
736 new.x = pSprite->physLimits.x2 - 1; in CheckPhysLimits()
737 if (new.y < pSprite->physLimits.y1) in CheckPhysLimits()
738 new.y = pSprite->physLimits.y1; in CheckPhysLimits()
739 else if (new.y >= pSprite->physLimits.y2) in CheckPhysLimits()
740 new.y = pSprite->physLimits.y2 - 1; in CheckPhysLimits()
741 if (pSprite->hotShape) in CheckPhysLimits()
742 ConfineToShape(pDev, pSprite->hotShape, &new.x, &new.y); in CheckPhysLimits()
747 (pScreen != pSprite->hotPhys.pScreen)) || in CheckPhysLimits()
748 (new.x != pSprite->hotPhys.x) || (new.y != pSprite->hotPhys.y)) { in CheckPhysLimits()
755 if (pScreen != pSprite->hotPhys.pScreen) in CheckPhysLimits()
756 pSprite->hotPhys = new; in CheckPhysLimits()
774 SpritePtr pSprite = pDev->spriteInfo->sprite; in CheckVirtualMotion() local
788 pSprite->hot.pScreen = qe->pScreen; in CheckVirtualMotion()
789 pSprite->hot.x = ev->root_x; in CheckVirtualMotion()
790 pSprite->hot.y = ev->root_y; in CheckVirtualMotion()
811 RegionCopy(&pSprite->Reg2, &pSprite->windows[i]->borderSize); in CheckVirtualMotion()
820 RegionTranslate(&pSprite->Reg2, x, y); in CheckVirtualMotion()
822 RegionUnion(&pSprite->Reg2, &pSprite->Reg2, in CheckVirtualMotion()
823 &pSprite->windows[i]->borderSize); in CheckVirtualMotion()
832 if (pSprite->hot.pScreen != pWin->drawable.pScreen) { in CheckVirtualMotion()
833 pSprite->hot.pScreen = pWin->drawable.pScreen; in CheckVirtualMotion()
834 pSprite->hot.x = pSprite->hot.y = 0; in CheckVirtualMotion()
839 if (pSprite->hot.x < lims.x1) in CheckVirtualMotion()
840 pSprite->hot.x = lims.x1; in CheckVirtualMotion()
841 else if (pSprite->hot.x >= lims.x2) in CheckVirtualMotion()
842 pSprite->hot.x = lims.x2 - 1; in CheckVirtualMotion()
843 if (pSprite->hot.y < lims.y1) in CheckVirtualMotion()
844 pSprite->hot.y = lims.y1; in CheckVirtualMotion()
845 else if (pSprite->hot.y >= lims.y2) in CheckVirtualMotion()
846 pSprite->hot.y = lims.y2 - 1; in CheckVirtualMotion()
850 if (RegionNumRects(&pSprite->Reg2) > 1) in CheckVirtualMotion()
851 reg = &pSprite->Reg2; in CheckVirtualMotion()
862 ConfineToShape(pDev, reg, &pSprite->hot.x, &pSprite->hot.y); in CheckVirtualMotion()
865 qe->pScreen = pSprite->hot.pScreen; in CheckVirtualMotion()
866 ev->root_x = pSprite->hot.x; in CheckVirtualMotion()
867 ev->root_y = pSprite->hot.y; in CheckVirtualMotion()
873 RootWindow(pDev->spriteInfo->sprite) = pSprite->hot.pScreen->root; in CheckVirtualMotion()
880 SpritePtr pSprite = pDev->spriteInfo->sprite; in ConfineCursorToWindow() local
884 SyntheticMotion(pDev, pSprite->hot.x, pSprite->hot.y); in ConfineCursorToWindow()
895 pSprite->hotLimits = *RegionExtents(&pWin->borderSize); in ConfineCursorToWindow()
896 pSprite->hotShape = wBoundingShape(pWin) ? &pWin->borderSize in ConfineCursorToWindow()
898 CheckPhysLimits(pDev, pSprite->current, generateEvents, in ConfineCursorToWindow()
922 SpritePtr pSprite = pDev->spriteInfo->sprite; in ChangeToCursor() local
925 if (cursor != pSprite->current) { in ChangeToCursor()
926 if ((pSprite->current->bits->xhot != cursor->bits->xhot) || in ChangeToCursor()
927 (pSprite->current->bits->yhot != cursor->bits->yhot)) in ChangeToCursor()
928 CheckPhysLimits(pDev, cursor, FALSE, pSprite->confined, in ChangeToCursor()
933 pScreen = pSprite->screen; in ChangeToCursor()
936 pScreen = pSprite->hotPhys.pScreen; in ChangeToCursor()
939 FreeCursor(pSprite->current, (Cursor) 0); in ChangeToCursor()
940 pSprite->current = RefCursor(cursor); in ChangeToCursor()
966 SpritePtr pSprite = pDev->spriteInfo->sprite; in PostNewCursor() local
976 if (IsParent(grab->window, pSprite->win)) in PostNewCursor()
977 win = pSprite->win; in PostNewCursor()
982 win = pSprite->win; in PostNewCursor()
1030 SpritePtr pSprite = pDev->spriteInfo->sprite; in GetSpritePosition() local
1032 *px = pSprite->hotPhys.x; in GetSpritePosition()
1033 *py = pSprite->hotPhys.y; in GetSpritePosition()
1136 SpritePtr pSprite = device->spriteInfo->sprite; in EnqueueEvent() local
1163 ev->device_event.root = pSprite->hotPhys.pScreen->root->drawable.id; in EnqueueEvent()
1173 event->root_x += pSprite->screen->x - screenInfo.screens[0]->x; in EnqueueEvent()
1174 event->root_y += pSprite->screen->y - screenInfo.screens[0]->y; in EnqueueEvent()
1177 pSprite->hotPhys.x = event->root_x; in EnqueueEvent()
1178 pSprite->hotPhys.y = event->root_y; in EnqueueEvent()
1183 (tail->pScreen == pSprite->hotPhys.pScreen)) { in EnqueueEvent()
1186 tailev->root_x = pSprite->hotPhys.x; in EnqueueEvent()
1187 tailev->root_y = pSprite->hotPhys.y; in EnqueueEvent()
1201 qe->pScreen = pSprite->hotPhys.pScreen; in EnqueueEvent()
2478 FindChildForEvent(SpritePtr pSprite, WindowPtr event) in FindChildForEvent() argument
2480 WindowPtr w = DeepestSpriteWin(pSprite); in FindChildForEvent()
2514 FixUpEventFromWindow(SpritePtr pSprite, in FixUpEventFromWindow() argument
2520 child = FindChildForEvent(pSprite, pWin); in FixUpEventFromWindow()
2544 event->root = RootWindow(pSprite)->drawable.id; in FixUpEventFromWindow()
2552 if (pSprite->hot.pScreen == pWin->drawable.pScreen) { in FixUpEventFromWindow()
2566 (pSprite->hot.pScreen == pWin->drawable.pScreen); in FixUpEventFromWindow()
2570 XE_KBPTR.root = RootWindow(pSprite)->drawable.id; in FixUpEventFromWindow()
2572 if (pSprite->hot.pScreen == pWin->drawable.pScreen) { in FixUpEventFromWindow()
2648 SpritePtr pSprite = dev->spriteInfo->sprite; in DeliverEvent() local
2654 FixUpEventFromWindow(pSprite, xE, win, child, FALSE); in DeliverEvent()
2856 SpritePtr pSprite = inputInfo.pointer->spriteInfo->sprite; in PointInBorderSize() local
2860 if (RegionContainsPoint(&pSprite->windows[i]->borderSize, in PointInBorderSize()
2884 XYToWindow(SpritePtr pSprite, int x, int y) in XYToWindow() argument
2886 ScreenPtr pScreen = RootWindow(pSprite)->drawable.pScreen; in XYToWindow()
2888 return (*pScreen->XYToWindow)(pScreen, pSprite, x, y); in XYToWindow()
2986 SpritePtr pSprite = pDev->spriteInfo->sprite; in CheckMotion() local
2990 prevSpriteWin = pSprite->win; in CheckMotion()
3013 ev->root_x += pSprite->screen->x - screenInfo.screens[0]->x; in CheckMotion()
3014 ev->root_y += pSprite->screen->y - screenInfo.screens[0]->y; in CheckMotion()
3019 if (pSprite->hot.pScreen != pSprite->hotPhys.pScreen) { in CheckMotion()
3020 pSprite->hot.pScreen = pSprite->hotPhys.pScreen; in CheckMotion()
3022 pSprite->hot.pScreen->root; in CheckMotion()
3026 pSprite->hot.x = ev->root_x; in CheckMotion()
3027 pSprite->hot.y = ev->root_y; in CheckMotion()
3028 if (pSprite->hot.x < pSprite->physLimits.x1) in CheckMotion()
3029 pSprite->hot.x = pSprite->physLimits.x1; in CheckMotion()
3030 else if (pSprite->hot.x >= pSprite->physLimits.x2) in CheckMotion()
3031 pSprite->hot.x = pSprite->physLimits.x2 - 1; in CheckMotion()
3032 if (pSprite->hot.y < pSprite->physLimits.y1) in CheckMotion()
3033 pSprite->hot.y = pSprite->physLimits.y1; in CheckMotion()
3034 else if (pSprite->hot.y >= pSprite->physLimits.y2) in CheckMotion()
3035 pSprite->hot.y = pSprite->physLimits.y2 - 1; in CheckMotion()
3036 if (pSprite->hotShape) in CheckMotion()
3037 ConfineToShape(pDev, pSprite->hotShape, &pSprite->hot.x, in CheckMotion()
3038 &pSprite->hot.y); in CheckMotion()
3039 pSprite->hotPhys = pSprite->hot; in CheckMotion()
3041 if ((pSprite->hotPhys.x != ev->root_x) || in CheckMotion()
3042 (pSprite->hotPhys.y != ev->root_y)) { in CheckMotion()
3045 XineramaSetCursorPosition(pDev, pSprite->hotPhys.x, in CheckMotion()
3046 pSprite->hotPhys.y, FALSE); in CheckMotion()
3051 (*pSprite->hotPhys.pScreen->SetCursorPosition) (pDev, in CheckMotion()
3052 pSprite-> in CheckMotion()
3054 pSprite-> in CheckMotion()
3056 pSprite-> in CheckMotion()
3062 ev->root_x = pSprite->hot.x; in CheckMotion()
3063 ev->root_y = pSprite->hot.y; in CheckMotion()
3066 newSpriteWin = XYToWindow(pSprite, pSprite->hot.x, pSprite->hot.y); in CheckMotion()
3086 pSprite->win = newSpriteWin; in CheckMotion()
3120 SpritePtr pSprite; in ReinitializeRootWindow() local
3128 pSprite = pDev->spriteInfo->sprite; in ReinitializeRootWindow()
3129 pSprite->hot.x -= xoff; in ReinitializeRootWindow()
3130 pSprite->hot.y -= yoff; in ReinitializeRootWindow()
3132 pSprite->hotPhys.x -= xoff; in ReinitializeRootWindow()
3133 pSprite->hotPhys.y -= yoff; in ReinitializeRootWindow()
3135 pSprite->hotLimits.x1 -= xoff; in ReinitializeRootWindow()
3136 pSprite->hotLimits.y1 -= yoff; in ReinitializeRootWindow()
3137 pSprite->hotLimits.x2 -= xoff; in ReinitializeRootWindow()
3138 pSprite->hotLimits.y2 -= yoff; in ReinitializeRootWindow()
3140 if (RegionNotEmpty(&pSprite->Reg1)) in ReinitializeRootWindow()
3141 RegionTranslate(&pSprite->Reg1, xoff, yoff); in ReinitializeRootWindow()
3142 if (RegionNotEmpty(&pSprite->Reg2)) in ReinitializeRootWindow()
3143 RegionTranslate(&pSprite->Reg2, xoff, yoff); in ReinitializeRootWindow()
3148 != pSprite->hotPhys.pScreen) in ReinitializeRootWindow()
3149 pSprite->hotPhys.x = pSprite->hotPhys.y = 0; in ReinitializeRootWindow()
3154 pSprite->hotPhys.pScreen->root, in ReinitializeRootWindow()
3181 SpritePtr pSprite; in InitializeSprite() local
3206 pSprite = pDev->spriteInfo->sprite; in InitializeSprite()
3210 pSprite->hot.pScreen = pScreen; in InitializeSprite()
3211 pSprite->hotPhys.pScreen = pScreen; in InitializeSprite()
3213 pSprite->hotPhys.x = pScreen->width / 2; in InitializeSprite()
3214 pSprite->hotPhys.y = pScreen->height / 2; in InitializeSprite()
3215 pSprite->hotLimits.x2 = pScreen->width; in InitializeSprite()
3216 pSprite->hotLimits.y2 = pScreen->height; in InitializeSprite()
3219 pSprite->hot = pSprite->hotPhys; in InitializeSprite()
3220 pSprite->win = pWin; in InitializeSprite()
3224 pSprite->spriteTrace = (WindowPtr *) calloc(1, 32 * sizeof(WindowPtr)); in InitializeSprite()
3225 if (!pSprite->spriteTrace) in InitializeSprite()
3227 pSprite->spriteTraceSize = 32; in InitializeSprite()
3230 pSprite->spriteTraceGood = 1; in InitializeSprite()
3232 pSprite->pEnqueueScreen = pScreen; in InitializeSprite()
3233 pSprite->pDequeueScreen = pSprite->pEnqueueScreen; in InitializeSprite()
3238 pSprite->spriteTrace = NULL; in InitializeSprite()
3239 pSprite->spriteTraceSize = 0; in InitializeSprite()
3240 pSprite->spriteTraceGood = 0; in InitializeSprite()
3241 pSprite->pEnqueueScreen = screenInfo.screens[0]; in InitializeSprite()
3242 pSprite->pDequeueScreen = pSprite->pEnqueueScreen; in InitializeSprite()
3245 if (pSprite->current) in InitializeSprite()
3246 FreeCursor(pSprite->current, None); in InitializeSprite()
3247 pSprite->current = pCursor; in InitializeSprite()
3250 (*pScreen->RealizeCursor) (pDev, pScreen, pSprite->current); in InitializeSprite()
3251 (*pScreen->CursorLimits) (pDev, pScreen, pSprite->current, in InitializeSprite()
3252 &pSprite->hotLimits, &pSprite->physLimits); in InitializeSprite()
3253 pSprite->confined = FALSE; in InitializeSprite()
3255 (*pScreen->ConstrainCursor) (pDev, pScreen, &pSprite->physLimits); in InitializeSprite()
3256 (*pScreen->SetCursorPosition) (pDev, pScreen, pSprite->hot.x, in InitializeSprite()
3257 pSprite->hot.y, FALSE); in InitializeSprite()
3258 (*pScreen->DisplayCursor) (pDev, pScreen, pSprite->current); in InitializeSprite()
3262 pSprite->hotLimits.x1 = -screenInfo.screens[0]->x; in InitializeSprite()
3263 pSprite->hotLimits.y1 = -screenInfo.screens[0]->y; in InitializeSprite()
3264 pSprite->hotLimits.x2 = PanoramiXPixWidth - screenInfo.screens[0]->x; in InitializeSprite()
3265 pSprite->hotLimits.y2 = PanoramiXPixHeight - screenInfo.screens[0]->y; in InitializeSprite()
3266 pSprite->physLimits = pSprite->hotLimits; in InitializeSprite()
3267 pSprite->confineWin = NullWindow; in InitializeSprite()
3268 pSprite->hotShape = NullRegion; in InitializeSprite()
3269 pSprite->screen = pScreen; in InitializeSprite()
3271 RegionNull(&pSprite->Reg1); in InitializeSprite()
3272 RegionNull(&pSprite->Reg2); in InitializeSprite()
3307 SpritePtr pSprite = NULL; in UpdateSpriteForScreen() local
3317 pSprite = pDev->spriteInfo->sprite; in UpdateSpriteForScreen()
3321 pSprite->hotPhys.pScreen = pScreen; in UpdateSpriteForScreen()
3322 pSprite->hot = pSprite->hotPhys; in UpdateSpriteForScreen()
3323 pSprite->hotLimits.x2 = pScreen->width; in UpdateSpriteForScreen()
3324 pSprite->hotLimits.y2 = pScreen->height; in UpdateSpriteForScreen()
3325 pSprite->win = win; in UpdateSpriteForScreen()
3327 if (pSprite->current) in UpdateSpriteForScreen()
3328 FreeCursor(pSprite->current, 0); in UpdateSpriteForScreen()
3329 pSprite->current = pCursor; in UpdateSpriteForScreen()
3330 pSprite->spriteTraceGood = 1; in UpdateSpriteForScreen()
3331 pSprite->spriteTrace[0] = win; in UpdateSpriteForScreen()
3334 pSprite->current, in UpdateSpriteForScreen()
3335 &pSprite->hotLimits, &pSprite->physLimits); in UpdateSpriteForScreen()
3336 pSprite->confined = FALSE; in UpdateSpriteForScreen()
3337 (*pScreen->ConstrainCursor) (pDev, pScreen, &pSprite->physLimits); in UpdateSpriteForScreen()
3338 (*pScreen->DisplayCursor) (pDev, pScreen, pSprite->current); in UpdateSpriteForScreen()
3342 pSprite->hotLimits.x1 = -screenInfo.screens[0]->x; in UpdateSpriteForScreen()
3343 pSprite->hotLimits.y1 = -screenInfo.screens[0]->y; in UpdateSpriteForScreen()
3344 pSprite->hotLimits.x2 = PanoramiXPixWidth - screenInfo.screens[0]->x; in UpdateSpriteForScreen()
3345 pSprite->hotLimits.y2 = PanoramiXPixHeight - screenInfo.screens[0]->y; in UpdateSpriteForScreen()
3346 pSprite->physLimits = pSprite->hotLimits; in UpdateSpriteForScreen()
3347 pSprite->screen = pScreen; in UpdateSpriteForScreen()
3373 SpritePtr pSprite; in NewCurrentScreen() local
3378 pSprite = ptr->spriteInfo->sprite; in NewCurrentScreen()
3380 pSprite->hotPhys.x = x; in NewCurrentScreen()
3381 pSprite->hotPhys.y = y; in NewCurrentScreen()
3384 pSprite->hotPhys.x += newScreen->x - screenInfo.screens[0]->x; in NewCurrentScreen()
3385 pSprite->hotPhys.y += newScreen->y - screenInfo.screens[0]->y; in NewCurrentScreen()
3386 if (newScreen != pSprite->screen) { in NewCurrentScreen()
3387 pSprite->screen = newScreen; in NewCurrentScreen()
3389 if (pSprite->confineWin) in NewCurrentScreen()
3390 XineramaConfineCursorToWindow(ptr, pSprite->confineWin, TRUE); in NewCurrentScreen()
3397 (*pSprite->screen->SetCursorPosition) (ptr, in NewCurrentScreen()
3398 pSprite->screen, in NewCurrentScreen()
3399 pSprite->hotPhys.x + in NewCurrentScreen()
3401 x - pSprite->screen->x, in NewCurrentScreen()
3402 pSprite->hotPhys.y + in NewCurrentScreen()
3404 y - pSprite->screen->y, in NewCurrentScreen()
3410 if (newScreen != pSprite->hotPhys.pScreen) in NewCurrentScreen()
3457 SpritePtr pSprite = PickPointer(client)->spriteInfo->sprite; in XineramaWarpPointer() local
3466 x = pSprite->hotPhys.x; in XineramaWarpPointer()
3467 y = pSprite->hotPhys.y; in XineramaWarpPointer()
3505 if (x < pSprite->physLimits.x1) in XineramaWarpPointer()
3506 x = pSprite->physLimits.x1; in XineramaWarpPointer()
3507 else if (x >= pSprite->physLimits.x2) in XineramaWarpPointer()
3508 x = pSprite->physLimits.x2 - 1; in XineramaWarpPointer()
3509 if (y < pSprite->physLimits.y1) in XineramaWarpPointer()
3510 y = pSprite->physLimits.y1; in XineramaWarpPointer()
3511 else if (y >= pSprite->physLimits.y2) in XineramaWarpPointer()
3512 y = pSprite->physLimits.y2 - 1; in XineramaWarpPointer()
3513 if (pSprite->hotShape) in XineramaWarpPointer()
3514 ConfineToShape(PickPointer(client), pSprite->hotShape, &x, &y); in XineramaWarpPointer()
3534 SpritePtr pSprite; in ProcWarpPointer() local
3551 pSprite = dev->spriteInfo->sprite; in ProcWarpPointer()
3563 x = pSprite->hotPhys.x; in ProcWarpPointer()
3564 y = pSprite->hotPhys.y; in ProcWarpPointer()
3577 if (source->drawable.pScreen != pSprite->hotPhys.pScreen || in ProcWarpPointer()
3593 newScreen = pSprite->hotPhys.pScreen; in ProcWarpPointer()
3607 if (newScreen == pSprite->hotPhys.pScreen) { in ProcWarpPointer()
3608 if (x < pSprite->physLimits.x1) in ProcWarpPointer()
3609 x = pSprite->physLimits.x1; in ProcWarpPointer()
3610 else if (x >= pSprite->physLimits.x2) in ProcWarpPointer()
3611 x = pSprite->physLimits.x2 - 1; in ProcWarpPointer()
3612 if (y < pSprite->physLimits.y1) in ProcWarpPointer()
3613 y = pSprite->physLimits.y1; in ProcWarpPointer()
3614 else if (y >= pSprite->physLimits.y2) in ProcWarpPointer()
3615 y = pSprite->physLimits.y2 - 1; in ProcWarpPointer()
3616 if (pSprite->hotShape) in ProcWarpPointer()
3617 ConfineToShape(dev, pSprite->hotShape, &x, &y); in ProcWarpPointer()
3625 dest, pSprite, x, y); in ProcWarpPointer()
3665 SpritePtr pSprite = device->spriteInfo->sprite; in ActivatePassiveGrab() local
3720 FixUpEventFromWindow(pSprite, xE, grab->window, None, TRUE); in ActivatePassiveGrab()
4157 SpritePtr pSprite = dev->spriteInfo->sprite; in DeliverOneGrabbedEvent() local
4202 FixUpEventFromWindow(pSprite, xE, grab->window, None, TRUE); in DeliverOneGrabbedEvent()
4239 SpritePtr pSprite = thisDev->spriteInfo->sprite; in DeliverGrabbedEvent() local
4262 deliveries = DeliverDeviceEvents(pSprite->win, event, grab, in DeliverGrabbedEvent()
4264 else if (focus && (focus == pSprite->win || in DeliverGrabbedEvent()
4265 IsParent(focus, pSprite->win))) in DeliverGrabbedEvent()
4266 deliveries = DeliverDeviceEvents(pSprite->win, event, grab, focus, in DeliverGrabbedEvent()
5213 SpritePtr pSprite; in ProcQueryPointer() local
5228 pSprite = mouse->spriteInfo->sprite; in ProcQueryPointer()
5237 .rootX = pSprite->hot.x, in ProcQueryPointer()
5238 .rootY = pSprite->hot.y, in ProcQueryPointer()
5241 if (pSprite->hot.pScreen == pWin->drawable.pScreen) { in ProcQueryPointer()
5243 rep.winX = pSprite->hot.x - pWin->drawable.x; in ProcQueryPointer()
5244 rep.winY = pSprite->hot.y - pWin->drawable.y; in ProcQueryPointer()
5245 for (t = pSprite->win; t; t = t->parent) in ProcQueryPointer()
5349 SpritePtr pSprite = dev->spriteInfo->sprite; in ProcSendEvent() local
5393 pWin = pSprite->win; in ProcSendEvent()
5405 if (IsParent(inputFocus, pSprite->win)) { in ProcSendEvent()
5407 pWin = pSprite->win; in ProcSendEvent()
5858 SpritePtr pSprite = PickPointer(client)->spriteInfo->sprite; in ProcRecolorCursor() local
5882 displayed = (pscr == pSprite->screen); in ProcRecolorCursor()
5885 displayed = (pscr == pSprite->hotPhys.pScreen); in ProcRecolorCursor()
5887 (pCursor == pSprite->current) && displayed); in ProcRecolorCursor()