mi: fix accidental x/y coordinate swap

Reported-by: Adam Greenblatt <adam.greenblatt@gmail.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
Peter Hutterer 2015-01-05 11:19:46 +10:00 committed by Keith Packard
parent 23a11fd85e
commit b058dec281

View File

@ -598,8 +598,8 @@ miPointerSetPosition(DeviceIntPtr pDev, int mode, double *screenx,
int constrained_x, constrained_y;
int current_x, current_y; /* current position in per-screen coord */
current_x = MIPOINTER(pDev)->x - pScreen->y;
current_y = MIPOINTER(pDev)->y - pScreen->x;
current_x = MIPOINTER(pDev)->x - pScreen->x;
current_y = MIPOINTER(pDev)->y - pScreen->y;
input_constrain_cursor(pDev, pScreen,
current_x, current_y, x, y,