don't move x or y depending on the screen size change

This commit is contained in:
Alan Hourihane 2005-10-10 10:07:47 +00:00
parent 7f72f94aa4
commit cad18ec979

View File

@ -261,10 +261,8 @@ xf86RandRSetConfig (ScreenPtr pScreen,
*/
if (pScreen == miPointerCurrentScreen ())
{
if (px >= pScreen->width || py >= pScreen->height) {
px = pScreen->width - 1;
py = pScreen->height - 1;
}
px = (px >= pScreen->width ? (pScreen->width - 1) : px);
py = (py >= pScreen->height ? (pScreen->height - 1) : py);
xf86SetViewport(pScreen, px, py);