diff options
Diffstat (limited to 'src/gx_randr.c')
-rw-r--r-- | src/gx_randr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gx_randr.c b/src/gx_randr.c index 98a86f7..46dba30 100644 --- a/src/gx_randr.c +++ b/src/gx_randr.c @@ -247,7 +247,7 @@ GXRandRSetConfig(ScreenPtr pScreen, Rotation rotation, pRandr->virtualY = pScrni->virtualY; } - miPointerPosition(&px, &py); + miPointerGetPosition(inputInfo.pointer, &px, &py); for (mode = pScrni->modes;; mode = mode->next) { if (pRandr->maxX == 0 || pRandr->maxY == 0) { @@ -286,13 +286,13 @@ GXRandRSetConfig(ScreenPtr pScreen, Rotation rotation, return FALSE; } - if (pScreen == miPointerCurrentScreen()) { + if (pScreen == miPointerGetScreen(inputInfo.pointer)) { px = (px >= pScreen->width ? (pScreen->width - 1) : px); py = (py >= pScreen->height ? (pScreen->height - 1) : py); xf86SetViewport(pScreen, px, py); - (*pScreen->SetCursorPosition) (pScreen, px, py, FALSE); + (*pScreen->SetCursorPosition) (inputInfo.pointer, pScreen, px, py, FALSE); } return TRUE; |