a furthur tweak to the randr cursor position fix
This commit is contained in:
parent
13f958fbe8
commit
7c1d9a31a3
@ -264,8 +264,12 @@ xf86RandRSetConfig (ScreenPtr pScreen,
|
|||||||
if (px < pSize->width && py < pSize->height)
|
if (px < pSize->width && py < pSize->height)
|
||||||
(*pScreen->SetCursorPosition) (pScreen, px, py, FALSE);
|
(*pScreen->SetCursorPosition) (pScreen, px, py, FALSE);
|
||||||
|
|
||||||
if (px < pScreen->width && py < pScreen->height)
|
if (px >= pScreen->width || py >= pScreen->height) {
|
||||||
(*scrp->PointerMoved) (pScreen->myNum, px, py);
|
px = pScreen->width - 1;
|
||||||
|
py = pScreen->height - 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
xf86SetViewport(pScreen->myNum, px, py);
|
||||||
}
|
}
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
Loading…
Reference in New Issue
Block a user