From c72c2354f13437f20bd64350890d317410988ed3 Mon Sep 17 00:00:00 2001 From: =?utf-8?q?Magnus=20Vigerl=C3=B6f?= Date: Fri, 11 Jan 2008 00:00:13 +0100 Subject: [PATCH] dix: Store coords when crossing screen or clipping for VCP Save the changed coordinates from miPointerSetPostion when the sending device is the virtual core pointer and we have crossed screens or clipped to the screen. --- dix/getevents.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/dix/getevents.c b/dix/getevents.c index bbcc499..3174bfa 100644 --- a/dix/getevents.c +++ b/dix/getevents.c @@ -699,6 +699,10 @@ GetPointerEvents(xEvent *events, DeviceIntPtr pDev, int type, int buttons, scr->height)+ax->min_value; } } + else if (coreOnly) { + cp->valuator->lastx = x; + cp->valuator->lasty = y; + } /* Drop x and y back into the valuators list, if they were originally * present. */ -- 1.5.2.5