Xi: Motion events update the device state too.

Without this line the device's axis values don't get updated properly for
pure motion events.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2009-06-16 10:48:03 +10:00
parent ad6347afea
commit 3fc762ea94

View File

@ -796,6 +796,7 @@ UpdateDeviceState(DeviceIntPtr device, DeviceEvent* event)
case ET_DeviceChanged:
ChangeMasterDeviceClasses(device, (DeviceChangedEvent*)event);
return DONT_PROCESS; /* event has been sent already */
case ET_Motion:
case ET_ButtonPress:
case ET_ButtonRelease:
case ET_KeyPress: