mirror of
https://github.com/X11Libre/xf86-input-evdev.git
synced 2026-03-26 02:38:35 +00:00
Revert "Check for XINPUT ABI, parameters of InitValuatorClassRec have changed."
GetMotionEvents() doesn't exist, led to compile errors with servers pre-MPX
merge. Thanks to Sven Wegener for pointing this out.
This reverts commit 42422d8f69.
This commit is contained in:
10
src/evdev.c
10
src/evdev.c
@@ -726,10 +726,7 @@ EvdevAddAbsClass(DeviceIntPtr device)
|
||||
pEvdev->min_y = absinfo_y.minimum;
|
||||
pEvdev->max_y = absinfo_y.maximum;
|
||||
|
||||
if (!InitValuatorClassDeviceStruct(device, 2,
|
||||
#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) < 3
|
||||
GetMotionEvents(),
|
||||
#endif
|
||||
if (!InitValuatorClassDeviceStruct(device, 2, GetMotionHistory,
|
||||
GetMotionHistorySize(), Absolute))
|
||||
return !Success;
|
||||
|
||||
@@ -759,10 +756,7 @@ EvdevAddRelClass(DeviceIntPtr device)
|
||||
|
||||
pInfo = device->public.devicePrivate;
|
||||
|
||||
if (!InitValuatorClassDeviceStruct(device, 2,
|
||||
#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) < 3
|
||||
GetMotionEvents(),
|
||||
#endif
|
||||
if (!InitValuatorClassDeviceStruct(device, 2, GetMotionHistory,
|
||||
GetMotionHistorySize(), Relative))
|
||||
return !Success;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user