From 348242f35aeb2869ef390241035b5f3266fc0288 Mon Sep 17 00:00:00 2001 From: Alan Hourihane Date: Fri, 7 Oct 2005 15:39:52 +0000 Subject: [PATCH] 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. --- hw/xfree86/common/xf86RandR.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/xfree86/common/xf86RandR.c b/hw/xfree86/common/xf86RandR.c index 26e62979c..f9ea4e683 100644 --- a/hw/xfree86/common/xf86RandR.c +++ b/hw/xfree86/common/xf86RandR.c @@ -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;