a furthur tweak to the randr cursor position fix

This commit is contained in:
Alan Hourihane 2005-10-10 09:24:28 +00:00
parent 13f958fbe8
commit 7c1d9a31a3

View File

@ -264,8 +264,12 @@ xf86RandRSetConfig (ScreenPtr pScreen,
if (px < pSize->width && py < pSize->height)
(*pScreen->SetCursorPosition) (pScreen, px, py, FALSE);
if (px < pScreen->width && py < pScreen->height)
(*scrp->PointerMoved) (pScreen->myNum, px, py);
if (px >= pScreen->width || py >= pScreen->height) {
px = pScreen->width - 1;
py = pScreen->height - 1;
}
xf86SetViewport(pScreen->myNum, px, py);
}
return TRUE;