summaryrefslogtreecommitdiff
path: root/hw/xfree86/common/xf86RandR.c
diff options
context:
space:
mode:
authorAlan Hourihane <alanh@fairlite.demon.co.uk>2005-10-10 09:24:28 +0000
committerAlan Hourihane <alanh@fairlite.demon.co.uk>2005-10-10 09:24:28 +0000
commit7c1d9a31a36552467d194e7d009c17dc526256c2 (patch)
tree2ba4b497d70ffe27ab452f65a3bad0570961fdd7 /hw/xfree86/common/xf86RandR.c
parent13f958fbe8420e406f24c01d320f29002ee860b7 (diff)
a furthur tweak to the randr cursor position fix
Diffstat (limited to 'hw/xfree86/common/xf86RandR.c')
-rw-r--r--hw/xfree86/common/xf86RandR.c8
1 files 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;