diff --git a/dix/events.c b/dix/events.c index 2667fef3c..22210af44 100644 --- a/dix/events.c +++ b/dix/events.c @@ -2351,7 +2351,9 @@ DefineInitialRootWindow(WindowPtr win) pScreen, sprite.current, &sprite.hotLimits, &sprite.physLimits); sprite.confined = FALSE; (*pScreen->ConstrainCursor) (pScreen, &sprite.physLimits); +#ifndef ROOTLESS (*pScreen->SetCursorPosition) (pScreen, sprite.hot.x, sprite.hot.y, FALSE); +#endif (*pScreen->DisplayCursor) (pScreen, sprite.current); #ifdef PANORAMIX diff --git a/hw/xquartz/xpr/xprCursor.c b/hw/xquartz/xpr/xprCursor.c index 76ab75c02..7088223be 100644 --- a/hw/xquartz/xpr/xprCursor.c +++ b/hw/xquartz/xpr/xprCursor.c @@ -293,16 +293,6 @@ QuartzCrossScreen(ScreenPtr pScreen, Bool entering) static void QuartzWarpCursor(ScreenPtr pScreen, int x, int y) { - static Bool neverMoved = TRUE; - - if (neverMoved) - { - /* Don't move the cursor the first time. This is the - jump-to-center initialization, and it's annoying. */ - neverMoved = FALSE; - return; - } - if (quartzServerVisible) { int sx, sy;