rework that again
This commit is contained in:
parent
7c1d9a31a3
commit
7f72f94aa4
|
@ -261,15 +261,14 @@ xf86RandRSetConfig (ScreenPtr pScreen,
|
||||||
*/
|
*/
|
||||||
if (pScreen == miPointerCurrentScreen ())
|
if (pScreen == miPointerCurrentScreen ())
|
||||||
{
|
{
|
||||||
if (px < pSize->width && py < pSize->height)
|
if (px >= pScreen->width || py >= pScreen->height) {
|
||||||
(*pScreen->SetCursorPosition) (pScreen, px, py, FALSE);
|
|
||||||
|
|
||||||
if (px >= pScreen->width || py >= pScreen->height) {
|
|
||||||
px = pScreen->width - 1;
|
px = pScreen->width - 1;
|
||||||
py = pScreen->height - 1;
|
py = pScreen->height - 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
xf86SetViewport(pScreen->myNum, px, py);
|
xf86SetViewport(pScreen, px, py);
|
||||||
|
|
||||||
|
(*pScreen->SetCursorPosition) (pScreen, px, py, FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
Loading…
Reference in New Issue