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 (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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user