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:
parent
ad6347afea
commit
3fc762ea94
|
@ -796,6 +796,7 @@ UpdateDeviceState(DeviceIntPtr device, DeviceEvent* event)
|
||||||
case ET_DeviceChanged:
|
case ET_DeviceChanged:
|
||||||
ChangeMasterDeviceClasses(device, (DeviceChangedEvent*)event);
|
ChangeMasterDeviceClasses(device, (DeviceChangedEvent*)event);
|
||||||
return DONT_PROCESS; /* event has been sent already */
|
return DONT_PROCESS; /* event has been sent already */
|
||||||
|
case ET_Motion:
|
||||||
case ET_ButtonPress:
|
case ET_ButtonPress:
|
||||||
case ET_ButtonRelease:
|
case ET_ButtonRelease:
|
||||||
case ET_KeyPress:
|
case ET_KeyPress:
|
||||||
|
|
Loading…
Reference in New Issue