mirror of
https://github.com/X11Libre/xf86-input-evdev.git
synced 2026-03-24 09:44:28 +00:00
move feedback initialization up
This allows the backend to propery initialize the feedback from options, as it works with most other drivers. This is the hacky equivalent of fixing the initialization of pointer acceleration, which would require changes to most drivers however. Signed-off-by: Simon Thum <simon.thum@gmx.de> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
committed by
Peter Hutterer
parent
d525b48a2f
commit
0dc931e1ac
@@ -1299,6 +1299,9 @@ EvdevAddRelClass(DeviceIntPtr device)
|
||||
GetMotionHistorySize(), Relative))
|
||||
return !Success;
|
||||
|
||||
if (!InitPtrFeedbackClassDeviceStruct(device, EvdevPtrCtrlProc))
|
||||
return !Success;
|
||||
|
||||
for (axis = REL_X; axis <= REL_MAX; axis++)
|
||||
{
|
||||
int axnum = pEvdev->axis_map[axis];
|
||||
@@ -1315,9 +1318,6 @@ EvdevAddRelClass(DeviceIntPtr device)
|
||||
|
||||
xfree(atoms);
|
||||
|
||||
if (!InitPtrFeedbackClassDeviceStruct(device, EvdevPtrCtrlProc))
|
||||
return !Success;
|
||||
|
||||
pInfo->flags |= XI86_POINTER_CAPABLE;
|
||||
|
||||
return Success;
|
||||
|
||||
Reference in New Issue
Block a user