programs/Xserver/hw/xfree86/common/xf86RandR.c Use PointerMoved instead of

SetCursorPosition, as PointerMoved will call AdjustFrame to reposition
    the window if necessary and avoid the cursor ending up offscreen.
This commit is contained in:
Alan Hourihane 2005-10-07 15:39:52 +00:00
parent 578e18d11b
commit 348242f35a

View File

@ -262,7 +262,7 @@ xf86RandRSetConfig (ScreenPtr pScreen,
if (pScreen == miPointerCurrentScreen ())
{
if (px < pSize->width && py < pSize->height)
(*pScreen->SetCursorPosition) (pScreen, px, py, FALSE);
(*scrp->PointerMoved) (pScreen->myNum, px, py);
}
return TRUE;