From 7c1d9a31a36552467d194e7d009c17dc526256c2 Mon Sep 17 00:00:00 2001 From: Alan Hourihane Date: Mon, 10 Oct 2005 09:24:28 +0000 Subject: [PATCH] a furthur tweak to the randr cursor position fix --- hw/xfree86/common/xf86RandR.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/hw/xfree86/common/xf86RandR.c b/hw/xfree86/common/xf86RandR.c index 9abf99d7f..bd261f6b3 100644 --- a/hw/xfree86/common/xf86RandR.c +++ b/hw/xfree86/common/xf86RandR.c @@ -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;