dix: Fix PostSyntheticMotion to use a DeviceEvent for posting.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2009-02-02 16:56:52 +10:00
parent 155986a93d
commit 085d503608

View File

@ -1123,7 +1123,7 @@ PostSyntheticMotion(DeviceIntPtr pDev,
int screen, int screen,
unsigned long time) unsigned long time)
{ {
xEvent xE; DeviceEvent ev;
#ifdef PANORAMIX #ifdef PANORAMIX
/* Translate back to the sprite screen since processInputProc /* Translate back to the sprite screen since processInputProc
@ -1135,11 +1135,12 @@ PostSyntheticMotion(DeviceIntPtr pDev,
} }
#endif #endif
memset(&xE, 0, sizeof(xEvent)); memset(&ev, 0, sizeof(DeviceEvent));
xE.u.u.type = MotionNotify; init_event(pDev, &ev, time);
xE.u.keyButtonPointer.rootX = x; ev.root_x = x;
xE.u.keyButtonPointer.rootY = y; ev.root_y = y;
xE.u.keyButtonPointer.time = time; ev.type = time;
(*pDev->public.processInputProc)(&xE, pDev, 1); /* FIXME: MD/SD considerations? */
(*pDev->public.processInputProc)((InternalEvent*)&ev, pDev);
} }