dix: update CheckMotion to deal with DeviceEvents.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer
2009-01-30 14:59:22 +10:00
parent 8829d966a6
commit 3a02e538db
3 changed files with 20 additions and 30 deletions

View File

@@ -930,14 +930,15 @@ ProcessOtherEvent(xEventPtr ev, DeviceIntPtr device, int count)
if (ret == DONT_PROCESS)
return;
nevents = ConvertBackToXI((InternalEvent*)ev, xE);
v = device->valuator;
b = device->button;
k = device->key;
if (device->isMaster || !device->u.master)
CheckMotion(xE, device);
CheckMotion(event, device);
nevents = ConvertBackToXI((InternalEvent*)ev, xE);
if (xE->u.u.type != DeviceValuator && xE->u.u.type != GenericEvent) {
GetSpritePosition(device, &rootX, &rootY);