From ff1cc8fcbc52e87c63706f14b7a1fd51d0048f28 Mon Sep 17 00:00:00 2001 From: =?utf-8?q?Magnus=20Vigerl=C3=B6f?= Date: Wed, 9 Jan 2008 19:41:03 +0100 Subject: [PATCH] dix: Use right screen-dimension in calculation after screen crossing When the pointer ends up on a new screen the right screen dimension should be used for calculating the coordinate in the device coordinate space. --- dix/getevents.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dix/getevents.c b/dix/getevents.c index 94b9f50..d26f103 100644 --- a/dix/getevents.c +++ b/dix/getevents.c @@ -679,7 +679,7 @@ GetPointerEvents(xEvent *events, DeviceIntPtr pDev, int type, int buttons, cp->valuator->lastx = pDev->valuator->lastx = x; if(ax->min_value < ax->max_value) pDev->valuator->lastx = (int)((float)(x)*(ax->max_value-ax->min_value+1)/ - scr->height)+ax->min_value; + scr->width)+ax->min_value; } if(y != cp->valuator->lasty) { AxisInfoPtr ax = &pDev->valuator->axes[1]; -- 1.5.2.5