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:
parent
578e18d11b
commit
348242f35a
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user