mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-08 23:12:27 +00:00
port all users to the new DIX motion history API
Port KDrive, Xvfb, and Xnest, as well as the virtual core devices, to the new motion history API. Make GetPointerEvents also update the history.
This commit is contained in:
parent
5b38eb69cd
commit
b9e180e632
5 changed files with 10 additions and 11 deletions
|
|
@ -285,10 +285,9 @@ CorePointerProc(DeviceIntPtr pDev, int what)
|
|||
case DEVICE_INIT:
|
||||
for (i = 1; i <= 32; i++)
|
||||
map[i] = i;
|
||||
/* we don't keep history, for now. */
|
||||
InitPointerDeviceStruct((DevicePtr)pDev, map, 32,
|
||||
NULL, (PtrCtrlProcPtr)NoopDDA,
|
||||
0, 2);
|
||||
GetMotionHistory, (PtrCtrlProcPtr)NoopDDA,
|
||||
GetMotionHistorySize(), 2);
|
||||
pDev->valuator->axisVal[0] = screenInfo.screens[0]->width / 2;
|
||||
pDev->valuator->lastx = pDev->valuator->axisVal[0];
|
||||
pDev->valuator->axisVal[1] = screenInfo.screens[0]->height / 2;
|
||||
|
|
|
|||
Loading…
Reference in a new issue