XQuartz: Don't warp the pointer on server start for XQuartz

This commit is contained in:
Jeremy Huddleston 2008-09-04 14:59:10 -07:00
parent c1caeb52a4
commit c0da576d49
2 changed files with 2 additions and 10 deletions

View File

@ -2338,7 +2338,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

View File

@ -294,16 +294,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;