mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-03 09:20:19 +01:00
don't move x or y depending on the screen size change
This commit is contained in:
parent
7f72f94aa4
commit
cad18ec979
1 changed files with 2 additions and 4 deletions
|
|
@ -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…
Add table
Reference in a new issue