don't move x or y depending on the screen size change
This commit is contained in:
parent
7f72f94aa4
commit
cad18ec979
|
@ -261,10 +261,8 @@ xf86RandRSetConfig (ScreenPtr pScreen,
|
||||||
*/
|
*/
|
||||||
if (pScreen == miPointerCurrentScreen ())
|
if (pScreen == miPointerCurrentScreen ())
|
||||||
{
|
{
|
||||||
if (px >= pScreen->width || py >= pScreen->height) {
|
px = (px >= pScreen->width ? (pScreen->width - 1) : px);
|
||||||
px = pScreen->width - 1;
|
py = (py >= pScreen->height ? (pScreen->height - 1) : py);
|
||||||
py = pScreen->height - 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
xf86SetViewport(pScreen, px, py);
|
xf86SetViewport(pScreen, px, py);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue